Vote UpVote

Delphi insight: when is memory initialized?

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 ...
Favorite? Off-Topic? jacob @ 2014-01-14 14:00


Visits: 954
Votes: 5
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Kyle A. Miller
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)