
DDGG
You are very kind, thank you for your help! I have found the solution, at the last reply of this: http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/ec0ce12e-d54d...
// extern BOOL (WINAPI * const _pRawDllMain)(HANDLE, DWORD, LPVOID)=&dll_callback; I commented it and recompiled the boost library, and then the problem disappeared.
If you do that then you are liable to leak memory and potentially resources if you use any boost.thread facilities from any thread not started with boost::thread. In particular, boost::thread_specific_ptr variables will not be destroyed when a non-boost::thread thread exits, but other uses of the boost thread library may also leak memory. The best option in this case is to use the DLL build of boost.thread. Anthony -- Author of C++ Concurrency in Action http://www.stdthread.co.uk/book/ just::thread C++0x thread library http://www.stdthread.co.uk Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976