TwoDesk Delphi Blog – Every time our program uses the computer’s memory, there’s a possibility that there was already something in that memory location. While the memory manager makes sure that the memory we’re using isn’t still being used by some other part of the program, it doesn’t always guarantee that there isn’t still “leftover” data there. Here’s how it works: When you create a local variable (var MyVar: Integer), its initial value is undefined. It will have the value of whatever was in that memory location from before. You should always assign it a value ...
Visits by Source
Users who voted for this posting
Kyle A. Miller