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 #10948 is a reply to message #10947] Fri, 30 January 1998 00:00 Go to previous messageGo to previous message
rivers is currently offline  rivers
Messages: 228
Registered: March 1991
Senior Member
In article <MPG.f3bb014bf2038a1989707@news.frii.com>, davidf@dfanning.com (David Fanning) writes:
> Jack Saba (jackxxx@magusxxx.stx.com) writes:
>
>> In IDL 4, when an error occurs in a widget application that uses
>> XMANAGER, the program stops in the module that caused the error.
>> IDL tells you what line the error occurred on and you can look at the
>> variables to get a handle on the problem. With IDL 5, XMANAGER catches
>> the error and returns a message that starts something like
>>
>> XMANAGER: Caught unexpected error from client application.
>>
>> You are not thrown out to the IDL prompt, and you are not told what
>> module the error occurred in.
>>
>> 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.

____________________________________________________________
Mark Rivers (773) 702-2279 (office)
CARS (773) 702-9951 (secretary)
Univ. of Chicago (773) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars.uchicago.edu (e-mail)

or:
Argonne National Laboratory (630) 252-0422 (office)
Building 434A (630) 252-0405 (lab)
9700 South Cass Avenue (630) 252-1713 (beamline)
Argonne, IL 60439 (630) 252-0443 (FAX)
[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: Sat Oct 11 08:30:35 PDT 2025

Total time taken to generate the page: 1.19732 seconds