Never mind.

I see what the problem is.

GetMem is actually a kind of (probably magical) wrapper around a memory manager.

The real GetMem is a function which returns a pointer.

As I already wrote, in Delphi an out of memory exception is raised.

The result value is thus never returned, which in this case means GetMem can not return a nil pointer.

And the result will be an uninitialized variable.

This creates a tiny little problem to get rid of the hint message.

It can probably easily be solved by writing:

Node := nil;
GetMem( Node, SizeOf(TNode) );

Bye,
Skybuck.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to