Skip Menu |
 

This queue is for tickets about the Win32-Exe CPAN distribution.

Report information
The Basics
Id: 42480
Status: open
Priority: 0/
Queue: Win32-Exe

People
Owner: Nobody in particular
Requestors: dusty [...] hey.nu
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.11
Fixed in: (no value)



Subject: Memory Leak, it seems
Download (untitled) / with headers
text/plain 509b
As noted in: http://www.perlmonks.org/?node_id=736789 Everytime I use: "my $exe = Win32::Exe->new($filename)" tons and tons of memory is used and not released. Each time it's run, it increases the number of references and the process memory goes way up. It seems the larger the file being read, the more memory is being used. I haven't tested, but I assume that the amount of memory used is the same as the size of the file being read. When we leave the scope that it's used in, it still doesn't release.
Hi, Thanks for reporting this issue and providing link to thread with a working solution. There is, as yet, no fix for the memory issues in Win32::Exe. As you have noted, Win32::File::VersionInfo is a better fit for gathering version information from several binaries. As Win32::Exe is mainly targeted at updating single executable or dll files, the memory issue is not a 'show stopper' for the majority of users. I will leave the ticket status 'open'. Regards Mark On Sat Jan 17 06:58:43 2009, WILSOND wrote: Show quoted text
> As noted in: http://www.perlmonks.org/?node_id=736789 > > Everytime I use: "my $exe = Win32::Exe->new($filename)" tons and tons
of Show quoted text
> memory is used and not released. Each time it's run, it increases the > number of references and the process memory goes way up. It seems the > larger the file being read, the more memory is being used. I haven't > tested, but I assume that the amount of memory used is the same as the > size of the file being read. > > When we leave the scope that it's used in, it still doesn't release.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.