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.