> to use the 'close_scene' method of the engine. You can see this by
> looking at the source code of the mlab.close function.
> 
> If you still have leaks, I suggest that you have a look at the mlab.clf

Yes, the leak is still there...

> behind. It might even be worth calling clf before closing the scene (you

But the leak goes away when I insert the mlab.clf() call before close_scene. 
Since the source code you pasted does not seem to remove anything that 
close_scene does not remove, too, I guess the trick is the last call in clf:

>     gc.collect()

I tried to simply gc.collect() without the rest of clf() magic, but that is 
not enough. I do not have the time to figure out the minimal set of things to 
do to avoid the leak. gcf() does the trick, so I am happy.

Thank you very much!

-Juha

------------------------------------------------------------------------------
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to