in reply to Re^2: Avoiding Memory Leaks with Win32::OLE (what leaks)
in thread Avoiding Memory Leaks with Win32::OLE
Memory usage grows roughly rapidly and monotonically.
Can you put some numbers on this?
Since the original post, I have modified the Win32::OLE module on my machine to also delete the SAFEARRAY associated with Variants that have the VT_ARRAY and VT_BYREF flags set.
How, what did you do?
So it seems to me that it is possible to create a variant with the VT_BYREF flag that is the actual owner of the data. This should not be the case, as the whole idea of the VT_BYREF is that some other data structure owns the data and will take care of its cleanup
maybe all thats needed is to expose API to "cleanup" this data as well, for the people who manage to create one of these things?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Avoiding Memory Leaks with Win32::OLE (what leaks)
by vpmeister (Novice) on Oct 25, 2015 at 05:54 UTC | |
|
Re^4: Avoiding Memory Leaks with Win32::OLE (proposed fix)
by vpmeister (Novice) on Oct 25, 2015 at 06:20 UTC |