What does the free
method do in TProcess
. It's used in several examples I found on the net but there's nothing in the reference about it? So far I used it and everything works fine. Can I continue to use it or should I use a different method?
It is the Free
method defined in TObject
, at the very root of the class hierarchy. This method does the same thing in every single class, there is nothing special with TProcess
in this regard.
It is documented:
Free
will check theSelf
pointer and callsDestroy
if it is different fromNil
. This is a safer method than callingDestroy
directly.