Prabhu Ramachandran wrote: >>>>>> "Juerg" == Juerg Schmidli <[EMAIL PROTECTED]> writes: > > Juerg> Prabhu Ramachandran wrote: > >>>>>>> "Juerg" == Juerg Schmidli <[EMAIL PROTECTED]> writes: > >> > Juerg> Hi I have four-dimensional data stored in a netcdf file and > Juerg> want to create an isosurface visualization for each time > Juerg> step in the file (>100 times) and save the resulting image > Juerg> as a PNG-file. > >> > Juerg> The problem is that after a few iterations I run out of > Juerg> memory. How do I correctly destroy the tvtk and mayavi > Juerg> objects which I have created before entering into the next > Juerg> iteration? > >> Can you try again now after you update from SVN? I think I > >> may have fixed a potential cause of the problem. You may also > >> want to do > >> > >> import gc gc.collect() > >> > >> a few times to collect reference cycles. > > Juerg> Thanks, the memory is now beeing freed up. > > Great! Just curious, does the memory free up without the gc.collect() > call?
No. But one call to gc.collect() at the end of the subroutine does the job. Juerg ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ MayaVi-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mayavi-users
