Memory leaks

View: New views
5 Messages — Rating Filter:   Alert me  

Memory leaks

by Robert May-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tracker 1417288
https://sourceforge.net/tracker/index.php?func=detail&aid=1417288&group_id=16572&atid=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.
--
Robert May
Win32::GUI, a perl extension for native Win32 applications
http://perl-win32-gui.sourceforge.net/


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Perl-Win32-GUI-Hackers mailing list
Perl-Win32-GUI-Hackers@...
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-hackers
http://perl-win32-gui.sourceforge.net/

Re: Memory leaks

by Steve Loughran-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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=detail&aid=1417288&group_id=16572&atid=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.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Perl-Win32-GUI-Hackers mailing list
Perl-Win32-GUI-Hackers@...
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-hackers
http://perl-win32-gui.sourceforge.net/

Re: Memory leaks

by Robert May-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Steve Loughran wrote:
> 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

Thanks.  Unless someone tells me otherwise I'm going to close this bug.
(I'm also tempted to make it mandatory to be logged in to sourceforge to
create a new bug tracker entry, as there's no submitter information to
allow me to contact the original reporter).

Rob.

> Robert May wrote:
>> Tracker 1417288
>> https://sourceforge.net/tracker/index.php?func=detail&aid=1417288&group_id=16572&atid=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.
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Perl-Win32-GUI-Hackers mailing list
> Perl-Win32-GUI-Hackers@...
> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-hackers
> http://perl-win32-gui.sourceforge.net/
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Perl-Win32-GUI-Hackers mailing list
Perl-Win32-GUI-Hackers@...
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-hackers
http://perl-win32-gui.sourceforge.net/

Re: Memory leaks

by Jeremy White-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


>Tracker 1417288
>https://sourceforge.net/tracker/index.php?func=detail&aid=1417288&group_id=16572&atid=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



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Perl-Win32-GUI-Hackers mailing list
Perl-Win32-GUI-Hackers@...
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-hackers
http://perl-win32-gui.sourceforge.net/

Re: Memory leaks

by Robert May-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jeremy White wrote:

>> Tracker 1417288
>> https://sourceforge.net/tracker/index.php?func=detail&aid=1417288&group_id=16572&atid=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!)

Thanks for the report - seems the tracker can be closed.

Can you let me know what earlier Win32::GUI version you used to see the
leak - I'd like to understand which change fixed this.

Rob.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Perl-Win32-GUI-Hackers mailing list
Perl-Win32-GUI-Hackers@...
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-hackers
http://perl-win32-gui.sourceforge.net/
LightInTheBox - Buy quality products at wholesale price!