View Full Version : Maya plug-in crashes after second load

09 September 2010, 06:01 PM
Hi all,

I am developing a plug-in for Maya 2010 using the C++ API. This plug-in declares two commands.

When I unload the plug-in after executing one command, then reload it and execute the command again, Maya crashes without actually entering the command code (MPxCommand::doIt method).

Both commands are registered in function initializePlugin() and deregistered in uninitializePlugin().

I have followed exactly the Maya API documentation, but I don't know what is the reason of the crash.

Any help would be very appreciated.

Thanks in advance.
Javier Taibo.

09 September 2010, 05:19 PM
Another behaviour I have detected is that Maya does not really free all resources after unloading the plug-in. Actually some DLLs used by the plug-in keep locked after unloading the plug-in.

Is there any problem fo the plug-in .mll to link to other libraries?

Is there any additional call I must do when unloading the plug-in, more than unregistering the defined commands?

CGTalk Moderation
09 September 2010, 05:19 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.