Subject: | Memory leak |
There is a memory leak with the following (watch the handle count of perl.exe when this is run).
Version: Win32-Process-Info-1.004
OS: Windows XP SP2
Perl Version: v5.8.4 built for MSWin32-x86-multi-thread
<code>
#!perl
use strict;
use Win32::Process::Info;
my $variant='NT';
while(1){
my $pi = Win32::Process::Info->new (undef, $variant);
my @procs = $pi->GetProcInfo();
undef $pi;
my $pcnt=@procs;
print "$pcnt processes running\n";
sleep(2);
}
</code>