Thanks Chad, Good to know it's not entirely due to my incompetence :) I'm wondering if implementing the data structure as an MPxData instance and storing it in a dynamic attribute would help Maya manage the memory more appropriately?
Cheers! On Wed, Jan 23, 2013 at 12:37 PM, Chad Vernon <[email protected]> wrote: > Hey Serguei, > > I was running into this issue at our previous place of employment :) I > never figured out a way to release all the memory that Maya allocated. > > On Wednesday, January 23, 2013 2:24:48 AM UTC-8, [email protected]: > > Hi all, > > > > > > I'm working on a plugin that needs to create a dynamic hierarchical > pointer octree. > > I'm storing it on the heap and make sure to do the required clean up > after I'm through with it. > > > > > > > > However, I noticed that Maya won't release the allocated memory until > the plugin is unloaded. > > It doesn't seem to make a difference whether I delete the plugin > elements from the scene, flush undo stack, open new scene, etc. > > > > > > > > Does this sound familiar to anyone? Any suggestions would be appreciated! > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > > > -- Technical Director @ DreamWorks Animation -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected].
