Re: Problems with boost::threads and C++/CLI using VS 2005 SP1 Beta
John Dunn wrote:
If I link my /clr application to the boost::thread library when using
the new SP1 I get the following error when running my application
The application failed to initialize properly (0xc000007b). Click
on OK to terminate the application.
If I run it in the debugger it gives the same error and never breaks
into something I can step through.
This worked fine pre-SP1 so I'm guessing something's changed. I have
made sure that I've recompiled the boost libraries afer SP1. I've
posted to the boost newsgroup and they've said they're not doing
anything 'CLI hostile' and they would expect it to work.
Is this the proper place to report issues with the service pack?
Here's a simple example which will fail when compiled with /clr. Note
that including the boost::thread header automatically links with the
library.
#include <boost/thread/thread.hpp>
int main( int argc, const char* * argv ) {
return 1;
}
Any help would be appreciated.
Off hand, this seems very likely to be a problem with manifests - lack
thereof or incorrect content in some manifest.
Does the boost threads DLL include a manifest? Does your application
include a manifest? What do those manifests say?
-cd