using VC++ 2005 pro on XP 2003 server in a service program.
I have a c++ class that contains both static and non-static methods. The static methods are callback functions that I install in database server library so that the db server can call it when errors occur. When a specific error occurs I want that static method to throw an exception to be caught by one of the non-static methods -- there may be more than one instance of the non-static methods at any given time running in different threads.
Q: are exceptions thrown in a static method caught in try/catch blocks of all threads of the process or in only the thread in which it was thrown ? If there are two threads -- thread A and thread B, and thread A throws an exception will the catch block in thead B catch it? I hope not because it will make my life a lot easier :)
Thanks