$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [wave] assertion failed - multithread issue?
From: Sohail Somani (sohail_at_[hidden])
Date: 2009-03-09 18:38:46
Sohail Somani wrote:
> Ein Held wrote:
>> {
>> std::ifstream instream(file_name);
>> file =
>> std::string(std::istreambuf_iterator<char>(instream.rdbuf()),std::istreambuf_iterator<char>());
>> instream.close();
>>
>> for(int i=0;i<10;++i)
>> {
>> boost::thread t(test);
>> }
>>
>> test();
>> }
>
> I assume you are using the latest Boost.
>
> At a quick glance, it seems that it is possible for one of your 10
> threads to still be running when the main program exits. I wonder if
> this is the problem.
That quick glance killed it... That is an infinite loop in test(). My bad!
-- Sohail Somani http://uint32t.blogspot.com