On 29 Apr 2008, at 14:48, Zaka E-Lab wrote:
I don't create anything, the memory is allocated by the create procedure. How can the procedure know if the argument is a pointer already allocated or not?
It cannot know that without help. You have to do such bookkeeping yourself (e.g., as mentioned before, by assigning nil to all pointers when declaring them). That is one of the basic properties of a language with manual memory management.
Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal