For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

error during compiling C# sample

Kamil's picture

when i`m compiling c# sample and my own project i get :
DLL 'C:\Users\klejro\Documents\Visual Studio 2005\Projects\ocascade\ocascade\bin\Debug\OCC.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.

what`s wrong ?

devast's picture

you can turn off os loader lock in VS
Debug->Exceptions->Managed debugging assistants->Loader Lock
uncheck it

Pawel's picture