|
Boost Users : |
Subject: Re: [Boost-users] Crashing Issue
From: swati upadhyaya (swatiupadhyaya_at_[hidden])
Date: 2015-02-04 22:52:25
hi I am using like this where RunningThreads_ is vector containing boost
thread object pointer(handler).I am using interrupt() for the interruption
of thread interruption_point() catching that interruption then
joining.everytime its crashing in join() for me but for others who have the
same configuration its working fine all of us has windos 8. For me also it
was working last week but this week the same piece of code is crashing. :(
RunningThreads_[i].handle->interrupt();
RunningThreads_[i].handle->join();
delete RunningThreads_[i].handle;
On Thu, Feb 5, 2015 at 9:31 AM, swati upadhyaya <swatiupadhyaya_at_[hidden]>
wrote:
> RunningThreads_[i].handle->interrupt();
> LOG4CPLUS_INFO(root, "Thread Interrupted for " <<
> RunningThreads_[i].app_name << " successful");
> RunningThreads_[i].handle->join();
> LOG4CPLUS_INFO(root, "Waiting for thread to exit " <<
> RunningThreads_[i].app_name << " successful");
> delete RunningThreads_[i].handle;
> LOG4CPLUS_INFO(root, "Thread handle for " <<
> RunningThreads_[i].app_name << " successfully deleted");
> //RunningThreads_.erase(i);
>
> On Wed, Feb 4, 2015 at 12:10 AM, Vicente J. Botet Escriba <
> vicente.botet_at_[hidden]> wrote:
>
>> Le 03/02/15 09:10, swati upadhyaya a écrit :
>>
>> In my code join() timed_joined() is crashing, I am using these API
>> after interrupt(),Same piece of code is working for others but in my system
>> its crashing,
>> Is there some dependency problem I am using
>> Boost version: 1.55.0
>> OS: Windows 8
>> IDE: Visual Studio 2010
>>
>> Hi,
>>
>> it could help if you post the example and the backtrace.
>>
>> Which version/OS/compiler use others for which this works?
>>
>> Vicente
>>
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>
>
>
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