vb.net - Application crashes with no error -- Unhandled is Handled -


i have searched far , wide recommendations on how try , capture errors, did not find didn't try.


this visual basic .net (.net 3.5) application inherited @ work. have had problem awhile application crash no error -- program closes/disappears.

the application handling myapplication.unhandledexception wasn't catching issue. added handler appdomain.currentdomain.unhandledexception see if catch issue, no luck , handling fact system.unahndledexceptioneventargs.exceptionobject may not of type exception.

there no other threads being created , no other appdomains being created. seems crash anywhere between 3-5+ hours of use , not dependent on action user took.

with said, there else can hook try , capture these errors? expertise revolve around c# not sure if there else possibly hook vb.net or if missed else.

my other question is: what's proper way log errors inside these events? attempt log file, however, existing code , myself trying capture unhandled appdomain exceptions firing off messagebox. write this, can see possibly reason not being informed of errors.

thanks

update 1

i able crash me (not in ide) , saw appeared messagebox window outline appear , disappear before contents drawn. have modified unhandled exception handling log file on user's desktop instead. guess @ point more of waiting game since cannot crash in ide.

it appears though attempts catch exceptions correct. catching appdomain.currentdomain.unhandledexception getting triggered on these crashes. initial attempt pop message box flawed. crashed today after made changes log file on user's desktop instead , error reported.


incase curious on crash -- appears running out gdi resources due third party control. out of memory exception being thrown, @ random times when control initialized. in case of error caught today, blew on constructor of standard textbox when opening form. coincides small gdi leak found when running memory profiler.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -