Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

Optimized DLL failing to start properly

renderman
Beginner
247 Views

I am compiling a DLL library using Intel C++ 9.1. The debug version works fine, but if I turn the optimizations on (at any level), I get "The application failed to initialize properly (0xc0000005)" for the binaries that use this DLL.

Any suggestions?

Thanks
0 Kudos
3 Replies
JenniferJ
Moderator
247 Views

Can you manuall register the "release" DLL and try again? There was a bug in the IDE integration module that the DLL registration was skipped after building the DLL. But it's fixed already.

The latest compiler update is 9.1.032 if you haven't upgraded yet.

Thanks,

Jennifer

0 Kudos
renderman
Beginner
247 Views

Thanks for the reply Jennifer,

I don't know how to register the DLL. I would be happy to try if you tell me how.

I'm using 9.1.033.

RenderMan
0 Kudos
JenniferJ
Moderator
247 Views

You can add this "C:WINDOWSsystem32 egsvr32.exe yourdll-name.dll" to the "post-build" event in the DLL project property. Or you can run this command from a command window. After registering, run your program to see if you still get the error.

Jennifer

0 Kudos
Reply