Delphi and access violation, check for real object implementation
Posted on 2010-11-10
I've this problem:
in my application I've some data module with some fields and methods;
one field is an implementation of and object.
This is released automatically by Delphi when the application shutdown but if I check this field with this:
if FmyField <> nil then
// Do Somethink
this check return true and if I access to field I got obviously an access violation.
My question is:
How I can check if this field (or variable) is real implemented?