VarVariant memory leak
Posted on 1998-03-06
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.