Boost logo

Boost Users :

Subject: Re: [Boost-users] [BOOST THREAD] Threads Spawning Unexpectedly
From: John Wilkinson (jwilkinson_at_[hidden])
Date: 2009-04-28 15:39:51


________________________________________
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Terrimane Pritchett
Sent: Monday, April 27, 2009 5:06 PM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] [BOOST THREAD] Threads Spawning Unexpectedly

> What you say about the Windows runtime may be a possibility but I am given
> pause by one thing...I don't change any compiler options for the single-
> threaded or multi-threaded implementation.  Both implementations are
> linking against the same runtime.  I will have to research what goes on
> with boost::threads a bit further but for now at least there is a starting
> point for investigation. 

That may be part of your problem. Assuming that you are using Visual Studio, go to the project properties dialog. In the tree at the left, select Configuration Properties - C/C++ - Code Generation. About halfway down the list on the right, you will see a "Runtime Library" property. Set it to the correct value for your program. The choice should be obvious.

John


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