From: Peter Eisengrein <Peter.Eisengrein@at...> - 2001-03-08 15:07:15
Does Win32::GUI give memory back to the OS (WinNT)? I know this has been an
on and off topic for Perl in general. And the answer is usually, no, Perl
does not give memory back.
Try this experiment: open any GUI script (seems to be true for any, at least
on WinNT 4.0). While it is open, open Windows TaskManager and goto Processes
tab. Identify the perl process. Note the Mem Usage. Leave TaskManager open
and minimize the perl gui window. Note the Mem Usage. Then restore the perl
gui window to its original size. Note the Mem Usage.
On my system, it would appear that minimizing and restoring the window
reduces the amount of memory the gui script uses (by quite a bit!). Is this
true or is it some slight-of-hand?
Peter Eisengrein wrote:
> Does Win32::GUI give memory back to the OS (WinNT)? I know this
> has been an on and off topic for Perl in general. And the answer
> is usually, no, Perl does not give memory back.
this is a very well known problem, and has been solved in version
0.0.558. the observed behaviour (Mem Usage growing in the Task
Manager and falling back when the window is minimized) is the usual
behaviour of almost all Win32 applications.
$_=q,just perl,,s, , another ,,s,$, hacker,,print;