Creates a dynamic variable of the specified size and puts the address of the block in a pointer variable.
procedure GetMem(var P: Pointer; Size: Word);
Windows, Real, Protected
P is a variable of any pointer type. Size is an expression specifying the size in bytes of the dynamic variable to allocate. The newly created variable can be referenced as P^.
If there is not enough free space in the heap to allocate the new variable, a run-time error occurs.
The largest block that can be safely allocated on the heap at one time is 65,528 bytes (64K-$8).