Boost logo

Boost Users :

From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2007-07-05 09:27:22


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_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Ovanes
> Markarian
> Sent: Thursday, July 05, 2007 9:16 AM
> To: boost-users_at_[hidden]
> 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
>>
>>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net