|
Boost : |
From: Michael Glassford (glassfordm_at_[hidden])
Date: 2003-12-12 13:16:56
It's also worth noting that, for VC6, at least, "you can't create threads in
DllMain" also means that you can't create threads in constructors of global
variables (or in CWinApp::InitInstance if you use MFC).
Mike
Russell Hind wrote:
> Have a look at
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dllmain.asp
>
> You can't create threads in a DLLMain. You should add an Initialise
> and
> Shutdown methods to your DLL and have the host application call these
> after the DLL has been loaded and before the DLL has been un-loaded.
>
> HTH
>
> Russell
>
> JOLY Loic wrote:
>
>> Dear boosters,
>>
>> We have a problem when trying to launch a boost thread from a
>> Windows DLL.
>>
>>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk