Shared Tutorials New
Website Development
2D & 3D Graphics
Audio & Video Editing
Databases
Desktop Programming
Operating Systems
Business Applications
Miscellaneous
Selected Reading
© 2011 TutorialsPoint.COM
|
Shared Tutorials Directory
Tutorials Shared by the Community
-
This unit, of course, does nothing to the VCL, so you can still get stale pointers back from the VCL...
http://www.esanu.name/delphi/Object%20Pascal/Pointers/Avoiding%20using...
Tutorial Statistics
I've written a very simple unit, and devised some simple methods, to help prevent the usage of stale pointers. My biggest recommendation is to add an 'initialization' section to ALL UNITS WHICH CONTAIN POINTER OR OBJECT VARIABLES and set all the pointers (object variables are really pointers too) to nil. This will ensure that the pointers are all nilified before they are ever used. More detail...
|
|
|