Python memory deallocate
Hi, I've a big memory problem with my application. First, an example: If I write: a = range(500*1024) I see that python process allocate approximately 80Mb of memory. What can i do for DEALLOCATE this memory, or good part of this? My really problem is that my program work with more photos, which I open with PIL package. When I start it, my program allocate approximately 200Mb memory. If I want abort actual work and restart without restarting python process, the memory usage will go up approximately 380-400 Mb. I would like find something that DEallocate the memory not used. I've tried with gc python module, but don't work fine (it deallocate approximately 20-30 Mb) I've tried with Destroy, del command, but the memory don't show down. Thx I'm very desperate -- http://mail.python.org/mailman/listinfo/python-list
Re: Python memory deallocate
Well, it's right about range diff xrange, ok, but this was a simple example... I repeat that my program don't work with range or xrange... I MUST find a system which deallocate memory... Otherwise, my application crashes not hardly it's arrived to break-point system -- http://mail.python.org/mailman/listinfo/python-list
Re: Python memory deallocate
Ok, this is true. Well, you consider that my app has a first windows, where I choose, for example, the application 1. The application 1 will be started, and it will allocate 200Mb total. Now I want to abort this operation, and i will return to main initial window. The memory usage remain to 200Mb, even if I've destroyed the application 1 object with app1.Destroy() and del app1. When from initial windows i re-choose application1, the memory usage don't stay to 200Mb, but will increase to 360-380Mb memory, and I think this is not good!!! If I will repeat this procedure for 5-6 times, the application will crash... And it's not good!!! -- http://mail.python.org/mailman/listinfo/python-list