Subject: | Out of memory |
Date: | Wed, 25 Jan 2017 22:18:40 -0500 |
To: | bug-Win32-Exe [...] rt.cpan.org |
From: | Glenn <glennfhooper [...] gmail.com> |
Trying to use only the example in the module fails after one time use
Ultimately, I am looking to eventually only retrieve the FileVersion
portion of Win32::Exe
Additionally, both the CPAN and ActiveState produce the same Out of
Memory! errors...
#!/usr/bin/perl use Win32::Exe qw( ); my $remexe ='C:\Users\some.exe';
$remexe =~ tr|\\|/|; my $exe = Win32::Exe->new($remexe); $exe =
$exe->create_resource_section if $exe->can_create_resource_sect+ion; my
$info = $exe->get_version_info; print qq($_ = $info->{$_}\n) for (sort
keys(%$info));
Works (but it sure takes a long time) once.
The second or third time, I get the dreaded Out of Memory!