Memory allocation in a Delphi Application
Memory in a Delphi Application When we run our Delphi Application it acquires some memory to store variables, constants, parameters that we have used. And during runtime several times we create and free objects in our application so accordingly memory is occupied and freed. And those freed memories can be used to store other values. So how those memories are managed by a Delphi application, we will see in this blog. So at first what memory is? in short, computer memories are row of bytes. One could also say a byte is the smallest addressable piece of memory. A byte is a small storage unit that can contain 256 separate values (0 up to 255). In current 32 bit Delphi, memory can be seen as an array of maximum 2 gigabytes in size (231 bytes). The index of a byte in this huge array is called its address. What these bytes contain, depends on how they are used like t he value of 97 can mean a byte of value 97, as well as the charact...