In my program i catch exception in branch thread and i need deliver its in main thread.
Exception and Thread
Started by lestat, Jun 18 2005 04:02 AM
1 reply to this topic
#1
Posted 18 June 2005 - 04:02 AM
#2
Posted 20 June 2005 - 03:20 PM
lestat said:
You won't be able to "catch" exceptions anywhere except in the call stack that created the exception in the first place. That's the way exceptions work.
If you catch an exception in one thread, and wish to alert another thread about the problem, the standard way to communicate between threads (in the case of windows) is to use events. You set the event in one thread, then use WaitForSingleObject (or one of its siblings) to check for that event.
Good luck.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












