MEMORY LEAK
Posted: Tue Jun 24, 2014 5:16 am
Hi Roder.
Somewhere on the NET somebody gave this analysis. Is it still true in the light of Express++ ?
===================================================================================================
Manually Destroyed Objects
Some Objects require the programmer to specifically Destroy them.
Obviously, when your application ends, all memory related to it and reserved for it should be released.
However, during normal the process of creating, displaying and destroying Windows, Dialogs and the various components that make up your application, not all objects are automatically released.
Because of the Parent/Child relationship most objects are destroyed when the parent processes the ::Destroy() method. The problem arises when an object is not part of a destroyable parent.
Certain objects require the programmer to take care to clean things up manually.
If you use any of the following, you MUST explicitly destroy them when you are done using them.
XbpBitmap()
XbpClipBoard()
XbpFileDev()
XbpFont()
XbpMetaFile()
XbpPrinter()
XbpPresSpace()
Joe.
Somewhere on the NET somebody gave this analysis. Is it still true in the light of Express++ ?
===================================================================================================
Manually Destroyed Objects
Some Objects require the programmer to specifically Destroy them.
Obviously, when your application ends, all memory related to it and reserved for it should be released.
However, during normal the process of creating, displaying and destroying Windows, Dialogs and the various components that make up your application, not all objects are automatically released.
Because of the Parent/Child relationship most objects are destroyed when the parent processes the ::Destroy() method. The problem arises when an object is not part of a destroyable parent.
Certain objects require the programmer to take care to clean things up manually.
If you use any of the following, you MUST explicitly destroy them when you are done using them.
XbpBitmap()
XbpClipBoard()
XbpFileDev()
XbpFont()
XbpMetaFile()
XbpPrinter()
XbpPresSpace()
Joe.