Boost logo

Boost :

Subject: Re: [boost] [thread] throw during new boost::thread() ??
From: Lars Viklund (zao_at_[hidden])
Date: 2010-08-21 19:52:22

On Sat, Aug 21, 2010 at 04:29:28PM -0700, David M. Cotter wrote:
> how about this: i changed my test to do one thread at a time, wait for
> it to complete, then do the next thread

> again, throws an exception from the same location after 5496 threads
> (note my app spawns several other threads just to get running, so the
> number may be off by the time i run the test

How do you create your threads? new'd on free store? local variable?

If you're allocating with say new and forget to delete, you might be
running out of thread handles as you'll have zombies hanging around.

Lars Viklund | zao_at_[hidden]

Boost list run by bdawes at, gregod at, cpdaniel at, john at