Web lists-archives.org

Re: [Mingw-users] why is terminate() called?




On 2008-04-09 02:23Z, Bob Rossi wrote:
> 
> I have a C++ program that I create with mingw gcc-4.2-sjlj only. I

Does the problem occur if you use gcc-3.4.x instead?

> create a bunch of static libraries, and then link a main program. I've
> found that in one of the .a libraries I throw an exception and 
> terminate() is being called, even though the Main.cpp file clearly
> catches all exceptions.
> 
> Does anyone know why I would see this behavior? I am using threads, C++
> and exceptions.

There are numerous possible causes. For example, maybe a dtor
throws during unwinding; maybe an exception-specification is
violated; maybe a static global's ctor throws....

> What other information can I provide?

A minimal self-contained testcase would be helpful.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users