comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: main or procedure
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: main or procedure [message #54629 is a reply to message #54628] Wed, 20 June 2007 05:20 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
sujian@gmail.com writes:

> When I .compile a procedure, it says,
> You compiled a main program while inside a procedure. Returning.
>
> And all the information before the compilation was lost.
>
> How to fix it?

You need to do two things: (1) Add more error handling
to your code, so that when a program crashes it goes
back to the main program level (ON_ERROR, 1), and (2)
learn to type RETALL *immediately* when your program
crashes, and certainly before you do any more compiling.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Speed and array operations
Next Topic: memory for pixmaps: big vs many

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:48:22 PDT 2025

Total time taken to generate the page: 0.00398 seconds