Why should I use Free and not FreeAndNil in a destructor?

Viewed 8077

I have read A case against FreeAndNil but still don't understand why I cannot use this method in a class destructor ? Can anyone explain.

Update: I think the comment from Eric Grange was most useful for me. The link show that this is not obvious how to deal with it and it is mainly a matter of taste. Also the method FreeAndInvalidate was useful.

4 Answers
Related