C++ Exceptions and multithreading 
Author Message
 C++ Exceptions and multithreading

Hi all !
Suppose we have a multithreaded Win 32 application, all written in Visual
C++, running on NT.
OK, what will happen if the thrown C++ exception won't be caught in the same
thread ?
I understand that better to avoid such situation and catch in the same
thread but nevertheless, what will happen ?
I understand that "thread" is not C++ concept but I am interesting only in
combination NT/Visual C++.
Suppose I have catch(...)  somewhere in the main thread , is it possible
that exception would be propagated through the thread margins and be caught
in the main thread (I think it should but I am not sure) ?
Many thanks !

Wed, 04 Jun 2003 04:42:48 GMT  
 C++ Exceptions and multithreading
try / catch block puts a special data structure on the stack, the so-called
exception stack frame. Every thread has its own stack. So you can only catch
the exception in the same thread it w

Wed, 04 Jun 2003 04:52:46 GMT  
 [ 2 post ] 

 Relevant Pages 

1. C++ Exceptions and multithreading

2. Multithreading exception problem

3. Translate a SEH exception into a C++ exception

4. Catching hardware exceptions using C++ exceptions

5. Catching SEC Exceptions as C++ Exceptions

6. Win32 structured exceptions vs C++ exceptions

7. retrieve exception context in C++ exception handler

8. Exceptions : Combining C++ and Structured Exception Handling ?

9. managed C++ wrapper around unmanaged C++ classes: causing StackOverflow exception

10. Does Managed C++ forces multithreading?

11. Need a good tutorial on multithreading in Visual C++ 6.0

12. Multithreading and Standard C++ Library


Powered by phpBB® Forum Software