in reply to Re^3: Memory Leak using Win32::OLE::Variant for a SafeArray passed by Reference
in thread Memory Leak using Win32::OLE::Variant for a SafeArray passed by Reference
Close method undef of Com object causes small deallocation of memory but bulk of problem remains.
$thermo_raw_file->Close; undef $thermo_raw_file;I have looked for code examples on how to code ClearVariantObject, SafeArrayDestroy, or Win32::OLE::Destroy in perl without much sucess so I am not sure if my failures are based on approach or the wrong syntax.
The $pvarMassList SafeArray changes type from VT_EMPTY to VT_R8 upon successful GetMassListFromScanNum. Could this change in type controlled by the DLL cause perl to loose control of the SafeArray?
Thank you for the help. I appreciate all the suggestions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Memory Leak using Win32::OLE::Variant for a SafeArray passed by Reference
by Anonymous Monk on Jun 24, 2014 at 07:39 UTC |