|
Boost Users : |
Subject: Re: [Boost-users] Crash in boost::thread::sleep(xt) (boost 1.42 on Windows 32 bit)
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2012-03-26 14:37:36
Sorry, that I did not re-read your post, I forget such things too fast ;)
On Mon, Mar 26, 2012 at 3:41 PM, Arno <arno.schaefer_at_[hidden]> wrote:
> > if that is not the reason, I would run it in the debugger and enable the
> > debugger to stop whenever an exception is thrown or a signal is raised.
>
> That's exactly what I have done, but the problem is that the thread
> disapears
> without any notice, that means also if all exceptions are activated.
Ok, my suggestion would be:
Create a dummy class with destructor and initialize it as a thread-local
storage. Hopefully, the destructor is going to be called when the thread is
terminated. Now either make some logging (from the dtor) or put a
break-point into the destructor and see what is the context when the
storage is destroyed.
> Can you reproduce a minimal example to be posted here. I know it might be
> > hard to do when dealing with MT-contexts.
>
> That's what I have written, it happen only in the whole context and is not
> reproducible in a smaler set.
>
> regards
> Arno
>
Regards,
Ovanes
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