Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / SDK / Collada Plugin failed to initialize - Error code 87 The parameter is incorrect
  RSS 2.0 ATOM  

Collada Plugin failed to initialize - Error code 87 The parameter is incorrect
Rate this thread
 
63179
 
Permlink of this thread  
avatar
  • Laurence
  • Posted: 30 December 2011 09:59 AM
  • Total Posts: 4
  • Joined: 16 December 2006 05:11 PM

Hi, I am looking for some debugging advice from some veterans. I am developing a custom Collada plugin, originally based offer Autodesk’s with additions by Sony. The plugin project was originally VS2008 but converted manually to VS2010 for the Max 2012 build.

The Collada plugin compiles without error, however fails to be initialize by core.dll(PluginDllLoader::loadpluginDll()) on startup of max. The only error is “DLL <Collada.dle> failed to initialize. Error code 87 - The parameter is incorrect” outputed by max.
VS outputs
“‘3dsmax.exe’: Loaded ‘D:\Program Files\Autodesk\3ds Max 2012\plugins\ColladaMax.dle’, Symbols loaded.
‘3dsmax.exe’: Unloaded ‘D:\Program Files\Autodesk\3ds Max 2012\plugins\ColladaMax.dle’
The thread ‘Win32 Thread’ (0x1c48) has exited with code 0 (0x0).”

My question is what ‘parameter’ is max’s error referring to? And is their a list of error codes with a more elaborate explanations? And is their a way to debug the initialization process of a plugin without the full ADN debug 3ds max?

Additional details:
Build: 32bit Debug (hybrid), fails to load when compiled with v90 and v100 toolsets
Successfully builds and initializes when compiled from VS2008, but fails to run debug (due to 3.5 framework?)
Other than linking, the project properties are copied from a working Max 2012 Hybrid 32bit plugin solution and the original VS2008 solution.

A side note, I had to add ‘= 0’ to turn virtual function KeyAtTimeByID (stdmat.h) into a pure virtual as it is described in the SDK documentation in order to compile for max 2012. Is this normal?

Thanks
/Laurence



Replies: 0