In another question, I found out that the Assigned()
function is identical to Pointer <> nil
. It has always been my understanding that
Nothing can find a dangling (once valid but then not) pointer. It's your responsibility to either make sure it's set to nil
when you free it's content, or to limit the scope of the pointer variable to only be available within the scope it's valid. (The second is the better solution whenever possible.)