Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Maya crashes after reloading a plug-in

Maya crashes after reloading a plug-in

Anonymous
Not applicable
368 Views
2 Replies
Message 1 of 3

Maya crashes after reloading a plug-in

Anonymous
Not applicable
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.
0 Likes
369 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
I have also discovered that when plug-in is unloaded some DLLs used by the plug-in remain locked by Maya.

Is there any additional call to do when unloading the plug-in more than unregistering commands? Is there any problem with linking a MLL plug-in to other DLLs ?

Thanks in advance.
0 Likes
Message 3 of 3

Anonymous
Not applicable
Hi!

I have the same problem. Anybody have an idea why this happens? I am using libraries like CImg and pugixml in my plugin, could this have to do anything with it? I am registering and deregistering all commands used in my plugin and it still crashes Maya when REloaded...

Thanks for your help!

Jan
0 Likes