I expected that FreeMemory() indicates simply to the processor that the area is again available to be reused in whole or in part by another process, but without that a value of this area was changed!
For me, changes it’s not to mean that the memory is empty, because I imagine that the memory supervision is the task of a memory manager. It belongs to it to know the free and busy memory parts, to allocate some memory, etc....
It is much simple for the microprocessor!
Thus Why? What is the interest?
Silly idea: is it a safety measure coupled to linkedlist?
Code: Select all
Structure elmt
a.l
b.l
c.l
d.l
EndStructure
*List.elmt = AllocateMemory(SizeOf(elmt))
*List\a = 10
*List\b = 11
*List\c = 12
*List\d = 13
Debug *List\a
Debug *List\b
Debug *List\c
Debug *List\d
Debug "---------"
FreeMemory(*List)
Debug *List\a
Debug *List\b
Debug *List\c
Debug *List\d




