Web | This Site

Shared Tutorials New
Website Development
2D & 3D Graphics
Audio & Video Editing
Databases
Desktop Programming
Operating Systems
Business Applications
Miscellaneous
Selected Reading
© 2011 TutorialsPoint.COM

| Top Tutorials |  | New Tutorials |  | Submit |  | Login |  | Register |  | Forums

# Shared Tutorials Directory

Tutorials Shared by the Community

- ### Why you should be avoiding using stale pointers

  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

- Total Hits: 1349

- Average Rating :

- Total Votes: 0 votes

- Category: Delphi/Delphi Misc

- Submitted on: 2008-04-16 06:47:23

- Submitted By: Shekhar

- Set as Favorite

## Tutorial Detail ( View Tutorial )

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...
Previous Page

Advertisement

Online Image Processing

Indian Baby Names