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

Home » Public Forums » archive » Re: Q: debuggging widget applications in IDL 5
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: Q: debuggging widget applications in IDL 5 [message #10899] Fri, 06 February 1998 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
> Mark Rivers wrote:
>> Jack Saba (jackxxx@magusxxx.stx.com) writes:
>>>
>>> Is there any way to get IDL to behave the way it did in IDL 4, or at
>>> least to tell you where the error occurred? I tried using the new
>>> CATCH=0 option on the XMANAGER statement, but either I haven't figured
>>> out how to use it, or this isn't the solution.
>>
>
> In IDL 5 there is a /no_block keyword to XMANAGER. If you set this keyword it
> does 2 things:
> 1) Gives you access to the IDL command prompt even when your widget
> application is running
> 2) Produces the old IDL 4 behaviour when your widget application gets an
> error, i.e. gives you a traceback to where the error occurred
>
> Item 1) above is documented of course, but I don't recall seeing item 2)
> documented. In any event I like both of these behaviours, so I always use
> /no_block.

I wasn't aware that the /no_block keyword caused this behavior (#2).
Perhaps this only works under Solaris 2.X, but I put

XMANAGER, CATCH=0

in our idl_startup file, and we get "IDL 4-like" behavior when errors
occur, whether or not the keyword /NO_BLOCK was used (some of our
applications require its absence).

Dave
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Beginner fails miserabley at first hurdle 0.05 0.05
Next Topic: Re: command line args for pvwave ?

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

Current Time: Wed Oct 08 18:52:47 PDT 2025

Total time taken to generate the page: 0.00364 seconds