22 Jun
2012
22 Jun
'12
6 a.m.
Le 22/06/12 04:15, young a écrit :
I have a MFC dll application. I try to use Boost thread in the dll.
#include "stdafx.h" #include "interface.h" #include "MFCDLL.h"
#include
// The one and only CMFCDLLApp object CMFCDLLApp theApp;
EXPORT32 int __stdcall func() { AFX_MANAGE_STATE(AfxGetStaticModuleState()); ... return DLL_OK; }
The build is OK. But when I call the func, it crashes. If I comment the line: //#include
Then it works well. So how to use thread in MFC dll?
Hi, which version of Boost are you using? How it crashes? Have you access to a readable stack? Could you add the compiler command lines? Could you provide a complete example? And last, could you create a track ticket with all these informations? Best, Vicente