X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 08 Jul 2014 12:31 PM by  anon
code won't stop trying to execute
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
08 Jul 2014 12:31 PM
    Hello, I'm trying to run a code and it calls in a procedure. the execution is halted , because it says "Attempt to call undefined procedure/function". I just want it to give up, but the "run" button gets replaced by the 'resume' button, and pressing 'stop' doesn't work either (the play button is still replaced by the resume button). I can exit IDL and re-open it, and my Play button is back, but I was hoping someone knew a quicker way. Also, the procedure that is "undefined" is in the same directory as the code that is calling it in; why would IDL not recognize it?

    Deleted User



    New Member


    Posts:
    New Member


    --
    08 Jul 2014 12:34 PM
    ok, I just hit the 'reset' button and it's done now. But I'm still curious as to why the procedure is undefined....even if I change my 'current directory' to the one that contains the .pro file, it still is undefined

    Deleted User



    New Member


    Posts:
    New Member


    --
    08 Jul 2014 12:52 PM
    ok, well i went to preferences - idl - paths and added the directory containing the .pro file I needed to call in. Now it prints the syntax errors contained in this called in procedure, and THEN it says execution was halted because it is an undefined procedure. How could it list it's syntax errors if it was undefined?

    Deleted User



    New Member


    Posts:
    New Member


    --
    21 Jul 2014 05:32 AM
    In order to be found, a procedure first needs to be compileable. If a procedure has not been compiled and is executed, then IDL will 1. Search for the file in your IDL path 2. Compile the procedure 3. Execute the procedure At run-time, if steps 1 or 2 fail, then step three cannot occur because the procedure is not recognized yet by IDL. Try to compile your procedure before executing it and fix all of the syntax errors that appear. IDL> .compile myProcedure
    You are not authorized to post a reply.