From: Andrey <wa...@ma...> - 2009-12-24 08:15:45
|
Hello Jeremy! I tried your code (with commented lines) and memory leak still exists I tried it under WinXP SP2 and SP3 Perl version: 5.10.0 Win32::GUI version: 1.06 Here is stats for working set and private bytes for script: 1. after start: WS: 1276K, PB: 3668K, Handles: 25 2. first hit on label: WS: 13364K, PB: 14896K, Handles: 25 3. second hit on label: WS: 24676K, PB: 26148K, Handles: 25 ... 4. tenth hit on label: WS: 173 Meg, PB: 116 Meg, Handles: 25 all is ok with handles, but memory is leaking -----Original Message----- From: Jeremy White <jez...@ho...> To: <wa...@ma...>, <per...@li...> Date: Wed, 23 Dec 2009 21:50:15 +0000 Subject: RE: [perl-win32-gui-users] memory leak problem > > Hi, > What version of Win32::GUI are you using? I don't see any memory leak when running your code? You don't need to do anything to 'destroy' a control, Win32::GUI should do the right thing (see below). The same also applies to windows, you can create/destroy (let them go out of scope) just like normal objects and all memory should be released. Well, I think anyway:) > |