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?
0
votes
1 Answers
2
votes
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:
Freewill check theSelfpointer and callsDestroyif it is different fromNil. This is a safer method than callingDestroydirectly.