|
Boost Users : |
Subject: Re: [Boost-users] Boost::Thread referenced to a MFC regular dll, assertion error occur while loading this dll
From: DDGG (ddcatgg_at_[hidden])
Date: 2010-04-15 10:33:13
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 <eric_at_[hidden]>:
>
> 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
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