In the list of known bugs of the g++ compiler I'm missing an entry about the thread safety. For example: The function std::set_new_handler uses a global variable __new_handler, so it is not thread save. There are some such functions, std::set_unexpected, std::set_terminate, perhaps other. -- Dr. Ryszard Kabatek Sent through GMX FreeMail - http://www.gmx.net