Invoking freed object's function
Posted on 2010-09-08
Iam using Delphi 7.
I need to call function on object i.e
Problem is that sometimes FObj is freed and delphi invoke this function anyway. But invoke it only some part of it. Result is that i have cursor with hourglass becouse at the begining of fun() is code that change cursor.
I search for solution that prevent call freed function. Or how i can check this.
I know that i can do FreeAndNil on FObj.