Where is GetMassListFromScanNum documented?
How do you know @TempScan is the variable eating memory?
Try $pvarMassList->DESTROY; undef $pvarMassList; or equivalent; try it for all the variables local to the loop
Also see Foreach Loops because for( my $ix = 0; $ix < $max; $ix++ ){ ... }
In reply to Re: Memory Leak using Win32::OLE::Variant for a SafeArray passed by Reference
by Anonymous Monk
in thread Memory Leak using Win32::OLE::Variant for a SafeArray passed by Reference
by jwn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |