Link to home
Start Free TrialLog in
Avatar of oris
oris

asked on

VarVariant memory leak

hi,

I'm working on Delphi 2.01, NT 4.0, NTFS. I discovered a memory leak in using VarArrayCreate with type VarVariant and assigning strings to the array. I will add a sample code as a comment (I don't have it with me right now).
I discovered the memory leak using TurboPower's "Memory Sleuth". this memory leak happens only on Delphi 2.0 (I checked it on Delphi 3.0, and it was OK). I am looking for a way to alter CLASSES.PAS or SYSTEM.PAS to prevent the leak.
I have a lot of code written so I don't want to use data structures other then VarArray, and I can't upgrade to Delphi 3.

thanks,
Ā  Ori.
ASKER CERTIFIED SOLUTION
Avatar of williams2
williams2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial