Thanks to the work of Atanas Stoyanov and feedback from many loyal MemProof users, we have compiled a list of memory leaks in Delphi 3 and appropriate workarounds to eliminate them

WARNING: IF YOU WISH TO MODIFY VCL SOURCE CODE, YOU WILL NOT BE ABLE TO BUILD YOUR APPLICATION WITH RUN-TIME PACKAGES (THE FIXES LISTED BELOW APPLY ONLY WHEN LINKING THE VCL INTO YOUR APPLICATION). Note: Not all Delphi 3 Leaks are applicable to C++Builder 3 as a few changes were introduced into it by Borland.

FILE PROCEDURE

controls.pas

THintWindow.WMNCPaint

forms.pas

UnhookHintHooks;

 

new procedure added

printers.pas

TPrinter.Destroy;

checklist.pas

new procedure added

classes.pas

unit finalization

comctrls.pas

TRichEditStrings.LoadFromFile TRichEditStrings.SaveToFile

registry.pas

TRegistry.CloseKey;

graphics.pas

TBitmap.SetPixelFormat

 

TBitmap.ReadDIB (5486)

 

TBitmap.ReadDIB (5507)


Delphi 3 Demos Leaks

FILE PROCEDURE

ipcthrd.pas

TIPCThread.Destroy

 

TClientDirectory.Destroy

rxmain.pas

TMainForm.FormDestroy

For additional help on these and any other issues relating to memory leaks, please write to us.

Sign-up now for a free 30 day trial -
no strings attached, we even include
free technical support.

Follow Us

Join our community of like minded
individuals and be the first to hear
about products, news and deals.

Newsletter


AQtime Pro is a performance profiler and memory and resource allocation debugger for 32-bit and 64-bit Windows, .NET-connected, Java and Silverlight applications as well as VBScript and JScript code.

Community
Join our community of 100,000 developers and testers. Sign up for our newsletter, visit us on Facebook or Twitter.
Join Now...
 

+1 978-236-7900

© 2012 SmartBear Software. All rights reserved.
Home | Privacy | Terms of Use | About | Contact Us | Site Map | Print