Re: [perl-win32-gui-hackers] Memory leaks

2007-01-21 Thread Jeremy White



Tracker 1417288
https://sourceforge.net/tracker/index.php?func=detailaid=1417288group_id=16572atid=116572

This bug report claims that the following code leaks memory:

#!perl -w



I don't see any leak with Win32::GUI v1.05, perl 5.6.1, 5.8.7, 5.8.8,
Win98 or Win2K.

Can anyone reproduce this leak (I'm particularly interested if this is a
WinXP thing) or can I close the report?


I've just tried to reproduce it in an old Win32-GUI environment and it was 
leaking - upgrading to the latest code (via CVS) fixes the issue (that bug 
report might have come from me!)


Cheers,

Jez.

_
MSN Hotmail is evolving – check out the new Windows Live Mail 
http://ideas.live.com





Re: [perl-win32-gui-hackers] Memory leaks

2007-01-20 Thread Steve Loughran
Left it running for 5 minutes. Checking with process explorer shows no 
leaks here (on the perl.exe app, or on the system in general) as far as 
I can tell. ActivePerl 5.8.8, XP Pro.


Steve


Robert May wrote:

Tracker 1417288
https://sourceforge.net/tracker/index.php?func=detailaid=1417288group_id=16572atid=116572

This bug report claims that the following code leaks memory:

#!perl -w
use strict;
use Win32::GUI;

my ($W,$but);
while (1) {
   $W = new Win32::GUI::Window(
 #-name = TestWindow,
 -pos = [ 0, 0],
 -size = [210, 200],
 -text = TestWindow,
   );
   $but=$W-AddButton(
 #-name = test,
 -text = Button 1,
 -size = [ 70, 22 ],
 -pos = [ 20, 20 ],
   );
}
__END__

I don't see any leak with Win32::GUI v1.05, perl 5.6.1, 5.8.7, 5.8.8, 
Win98 or Win2K.


Can anyone reproduce this leak (I'm particularly interested if this is a 
WinXP thing) or can I close the report?


Regards,
Rob.