Results 1 to 9 of 9

Thread: Check if object is created

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Check if object is created

    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!
    Last edited by T-Bear; 07-10-2012 at 12:21 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •