Question about the Strataframe UnhandledExceptionFound


Author
Message
Robin J Giltner
Robin J Giltner
StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)
Group: Forum Members
Posts: 105, Visits: 650
I am trying to figure out what all the UnhandledException Catches, and looking at the help file, it seems to catch, well everything.  The only problem I'm having, is I from time to time on certain computer, is a UnhandledException error, with a Thread was being aborted message, giving a

System.Threading.ThreadAbortException: Thread was being aborted.

  at Microfour.Strataframe.Messaging.WaitWindowDialog.OnPaint(PaintEventARgs e) 

... 

I tried adding another handler for any ThreadExceptions, but that doesn't seem to be catching anything at all.

''-- Create the Thread Exception Delegate

'Dim loThreadHandler As New System.Threading.ThreadExceptionEventHandler(AddressOf Application_ThreadException)

'-- Add the Event Handler

AddHandler Application.ThreadException, AddressOf Application_ThreadException

I tried this with and without using a Delegate in the Sub Main procedure, but the ThreadAbortExceptions still generate windows unhandled exceptions.  If continue is pressed, the function finishes, the waitwindow goes away and everything seems to run fine.

Any idea on how/why to catch ThreadAbortExceptions, and why these pass by the general UnhandledException ?

Robin Giltner

-- sorry, really strugling with delegates, threads, event handlers and exceptions on this one

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search