<br><br><div class="gmail_quote">On Fri, Mar 23, 2012 at 8:43 AM, Arno <span dir="ltr">&lt;<a href="mailto:arno.schaefer@sqs.de">arno.schaefer@sqs.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
is there nobody who has some experience in this aerea?<br>
Our thread, what should run in an endless loop, crashes without any notice<br>
in the call:<br>
 � boost::this_thread::sleep(boost::posix_time::milliseconds(millisec_));<br>
<br>
The visual studio 2008 debugger didn&#39;t stop in any exception, so what can<br>
cause this crash and how can I find out the reason? The problem is reproducible<br>
in our complex scenario.<br>
<div class="HOEnZb"><div class="h5"><br>
regards<br>
Arno<br></div></div></blockquote><div><br></div><div>Is this really a correct way of calling sleep? There are 2 overloads of sleep function:</div><div>The one which defines the duration (how long to sleep) and the other the time-point until which the thread should at least sleep. I assume you are going to use the second one, therefore the call should be:</div>

<div>� ��boost::this_thread::sleep(boost::get_system_time()+boost::posix_time::milliseconds(millisec_));</div><div><br></div><div>Hope this is going to resolve your issue... I wonder if that is really intended that an implicit cast from milliseconds to system_time or duration object is really a good idea???</div>

<div><br></div><div><br></div><div>With Kind Regards,</div><div>Ovanes</div></div>