I am working with Perl 5.8.8 (ActiveState) under windows.
I have serious memory problems, although I allways use strict.pm (working only with local vars 'me $var') and do not use global vars. The program I've written has about 40000 Lines in more than 100 packages.
Do you know a good Package for searching memory leaks under Windows XP and perl version 5.8.8.
I would like to have something like the Devel::Symdump does to produce a list of all variables whose size has changed or are new allocated between two program-positions:
my $memdump = MemoryDump->new(); anyFunction(); print $memdump->diff(MemoryDump->new();
Exist something like that for ActiveState-Perl?
Thank you a lot for you response.Update:
Thank you for your responses.
I've tried to install Devel::LeakTrace, but it does not work because I am working with a company-computer that prevents me to update any program (and I do not want bypass the restriction). So I've found that for counting References of objects the allready installed package 'B' works fine.
my $anon = []; my $otherref = $anon; my $refcount = B::svref_2object($anon)->REFCNT(); # => 2
Also the package 'Devel::Symdump' could I use, to trace the symbol-table. I've copied it into my private Class-Folder
I will inform you about as soon as I found the solution about my memory-leak. (And the way I've found it)
In reply to Memory Leak Package by Bauldric
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |