Re: [Boost-users] [Boost-user]multithreaded app hangs in boost libraries

May be you should not initialize it globally??? ;) What happens if you initialize it from main? With Kind Regards, Ovanes Markarian On Thu, July 5, 2007 15:23, Farberov, Inga wrote:
My application actually hangs in the initialization phase, before I even get a chance to start any threads - in the main thread. The stacktrace that I have attached resulted from a call to init program_options object. Inga
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Ovanes Markarian Sent: Thursday, July 05, 2007 9:16 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [Boost-user]multithreaded app hangs in boost libraries
Can you please describe a bit more? How do you start your threads (before your app enters main or from the main)? Is there any chance, that you create threads and afterwards leave main?
Try to build in some simple logging mechanism, which will produce logs to cout from your threads and main as well... Do not forget to lock access to cout. Try may be create an instance of a global object, which will output log message from its constructor.
With Kind Regards,
Ovanes Markarian
On Thu, July 5, 2007 15:05, Farberov, Inga wrote:
Hello,
[...]
Inga
participants (1)
-
Ovanes Markarian