I’m trying to build a C++ plug-in for 64 bits. This plug-in contains some managed C++ code.
When I try to run its 64 bits version, I get the following message (approximately translated from french) …
The debugging managed assistant 'LoaderLock' has detected a problem in 'C:\Program Files\Rhinoceros 5.0 WIP (64-bit)\System\Rhino.exe'. Additional informations : the DLL 'C:\Users\...\MyPlugin.rhp' attempts a managed execution in the lock of OS loader. Don't try to execute managed code in an init function or in DllMain, because it can block the application.
My plug-in project is configured with CLR support; by default, sources are compiled with /clr. Pure C++ sources are compiled without /clr (I set the property for each pure C++ source).
The 32 bits version of this plug-in runs successfully.
Do I need extra stuffs to mix managed and unmanaged C++ with Rhino 5 - 64 bits ?