Zitat von
PaulJr:
dass man NIE die Routine FREE aufruft ohne vorher den Pointer zu überprüfen, da falls NIL dann hast Du ein echtes Problem.
Nein hat er nicht, da Free vorher auf nil prüft und nur dann den Destruktor aufruft, wenn da Objekt nicht nil ist:
Zitat:
Free automatically calls the destructor if the object reference is not nil. [..] Unlike Destroy, Free is successful even if the object is nil; so if the object was never initialized, Free won’t result in an error.
Zitat von
PaulJr:
(Hallo Lucke
)
Ähm, ich stehe gerade etwas auf dem Schlauch... Allerdings kommt mir der Nick
PaulJr irgendwie bekannt vor.