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_ThreadExceptionI 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