> The moment I close the application that launched the macro, my > ressources get freed. > > So is there a way to free my memory inside my nested loops?
Yes. Most likely, it is your algorithm itself which is flawed (not Python, not the application that embeds Python): You keep, most likely, references to objects which you should release in order to be able to reuse the memory. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list