windows 7 x64 - VB.NET SplashScreen "Program stopped working" -
environment:
- visual basic (version 2008)
- .net framework 3.5
- windows 7 64 bits
problem:
i have program next start code, during years worked.
public class splashfrm private withevents dosomework validatecls private sub splashfrm_load(byval sender object, byval e system.eventargs) handles me.load me.show() dosomework = new validatecls application.doevents() dosomework.doworks() end sub private sub react() handles dosomework.workfinished loginfrm.show() me.close() end sub end class public class validatecls public event workfinished() sub doworks() addhandler system.appdomain.currentdomain.unhandledexception, addressof onunhandledexception try 'here code validate licenses. 'i can not put code, works fine because can see validating ok. catch ex exception saveerror("validatecls-1", ex.tostring) end end try raiseevent workfinished() end sub private sub onunhandledexception(byval sender object, byval e unhandledexceptioneventargs) try handleunhandledexception(e.exceptionobject) catch ex exception end try end sub private sub handleunhandledexception(byval o object) if o nothing return try dim e exception = directcast(o, exception) messagebox.show(e.stacktrace, "unhandled exception.") catch ex exception messagebox.show(ex.message, "unhandled exception.") application.exit() end try end sub end class
but last week, in computers windows 7 64 bits, sudddenly crashes: "program stopped working":
description: stopped working
problem event name: appcrash
application name: nameapp.exe
application version: 1.0.5116
application timestamp: 52c6d693
fault module name: kernelbase.dll
fault module version: 6.1.7601.18229
fault module timestamp: 51fb1116
exception code: e053534f
exception offset: 0000c41f
the code inside "sub doworks()" working because checked validates license. error inside or after: raiseevent workfinished(), because loginform not showed.
what wrong?
Comments
Post a Comment