Hi.
I am having a little problem with my code.
So i have an object (TObject).
Then i have a Pointer type to that object (PObject = ^TObject)
In my code i use a pointer variable
MyVar: PObject;
Now my question is: How can i check if MyVar has been created? I have tried assigned(MyVar) but the code was not executed when the object should have been created. I also tried "If MyVar^ <> NIL Then", but same result. I either get a SIGSEGV error, or the code is never executed.
Is there anything i have missed?
Thanks for help!
Bookmarks