Boost::Thread referenced to a MFC regular dll, assertion error occur while loading this dll

Hello everyone!
I created a new VC2008 MFC regular dll project, do nothing but insert a line in
stdafx.h:
#include

You can't call (some) MFC functions from a thread that wasn't started with AfxBeginThread, which boost::thread doesn't use. Generally, anything in MFC that requires access to thread-local-storage (Like AfxGetMainWnd(), etc) will be broken.

Thanks for your response, but I do not use any boost:thread functions
but just included it's head file...
Are there any solutions ? thanks a lot!
2010/4/15 Eric J. Holtman
You can't call (some) MFC functions from a thread that wasn't started with AfxBeginThread, which boost::thread doesn't use.
Generally, anything in MFC that requires access to thread-local-storage (Like AfxGetMainWnd(), etc) will be broken.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
DDGG
-
Eric J. Holtman