On 27/04/2009 9:42 PM, Sylvain Thibault wrote:
I have a GUI running with perl 5.10 and Tkx (tkkit.dll 8.5.2.4) After
initially running the program, the Memory usage in Task manager is
around 55K.  Using the program for a whole day, the Memory usage
stays about the same.  However, if the program is minimized and then
restored, Memory usage goes down to 5K.  The Memory used never goes
back to anywhere near the initial 55K after that.

Is there any way to force the memory garbage collection without
having to minimize and restore the program ? Is there a problem with
the way I initially build the GUI ?  withdraw() build GUI deiconify()

This has been brought up before, but indeed you aren't really saving memory this way, and this isn't encouraging any real garbage collection in Tk. I tried to find some better references on this, but wikipedia has a near enough summary:

http://en.wikipedia.org/wiki/Windows_Task_Manager#Confusion

and this rant will be either enlightening or just more confusing:

http://shsc.info/WindowsMemoryManagement

Jeff
  • Memory Sylvain Thibault
    • Re: Memory Jeff Hobbs

Reply via email to