Why you should be avoiding using stale pointers
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Detail
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%20stale%20pointers.html
Total Hits: 3613
Total Votes: 36 votes
Category: Delphi/Delphi Misc
Submitted on: 2008-04-16 06:47:23
Submitted By: Shekhar
Description:
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...Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 16.67% |
6 |
![]() ![]() |
![]() ![]() 16.67% |
6 |
![]() ![]() ![]() |
![]() ![]() 16.67% |
6 |
![]() ![]() ![]() ![]() |
![]() ![]() 16.67% |
6 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 16.67% |
6 |





16.67%

16.67%

16.67%

16.67%

16.67%