Boost logo

Boost Users :

Subject: Re: [Boost-users] issue about include boost thread header in MFC dll
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-06-22 02:00:06


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<boost/thread.hpp>
>
> // 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<boost/thread.hpp>
>
> 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


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