Hi,
I have two object variables (a1, a2: TObject)
referencing to the same object instance.
There is a chance in the program flow
(depends on a condition)
when the object instance has to destroyed (FreeAndNil(a1)).
Later how can I test the a2 variable,
whether it references a valid object instance or does not.
I have tried the 'is' operator (if a2 is TObject then...),
but the result was True in case of a destroyed
object as well.
Thanks,
rbow
I have two object variables (a1, a2: TObject)
referencing to the same object instance.
There is a chance in the program flow
(depends on a condition)
when the object instance has to destroyed (FreeAndNil(a1)).
Later how can I test the a2 variable,
whether it references a valid object instance or does not.
I have tried the 'is' operator (if a2 is TObject then...),
but the result was True in case of a destroyed
object as well.
Thanks,
rbow