There is a memory leak in 8.5/2008 so I would try running your script in Maya 2009 before you blame your script. If it's still leaking in 2009 I'd be glad to help you out.
Ian On Wed, Apr 22, 2009 at 11:16 PM, Jakob Welner <[email protected]> wrote: > I am writing this animation transfer tool that seems to be having some > trouble handling the memory. Maya claims another 5 mb or memory for each > export I do, even though it's supposed to write everything to disc and clear > all objects. The export only queries data so nothing is in the undo stack > and I can't see any other reason for Maya to use mem on it so I guess it's > hiding somewhere in my python code. 5mb aren't much I know but when you are > batching a bunch of exports it quickly adds up. > I've been trying to find the flaw for a while now but without success so I'm > wondering if there is any specific way to go about this? I have a feeling > that it might be the python session that doesn't close after execution of > the script so the garbage collector can't run properly though that's just a > wild guess. > Any help would be greatly appreciated > > -- > JAKOB WELNER > _____________ > Animator | R&D > jakob.welner.dk > > > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
