K
Kueushiong Tu
I have a window form application. The main thread creates
a work thread to do a web request. The work thread has the
exception mechanism in place so that if there is anything
wrong with the web request, the exception is catched in
the work thread. However it still causes the main thread
to crash. The debugger output says an
'System.ExecutionEngineException' exception ocurred in
the unknown module is not catched.
How do I catch an exception occurred in the work thread
from the main thread to prevent the application from
being crashed?
a work thread to do a web request. The work thread has the
exception mechanism in place so that if there is anything
wrong with the web request, the exception is catched in
the work thread. However it still causes the main thread
to crash. The debugger output says an
'System.ExecutionEngineException' exception ocurred in
the unknown module is not catched.
How do I catch an exception occurred in the work thread
from the main thread to prevent the application from
being crashed?