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

Home » Public Forums » archive » Catching errors with widgets
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Catching errors with widgets [message #863] Wed, 07 April 1993 16:03
ian is currently offline  ian
Messages: 26
Registered: February 1992
Junior Member
I a writing some widgets to do some simple things. One widget is for loading
bands from a multi-spectral image on disk. This widget gets the parameters
from the user and then calls another routine I wrote to extract the bands
from the file.

Fine.

But, if the user overestimates the size of the image, then my extraction
routine will hit end of file and die. The error will bubble up until I blast
out of my widgets and get the IDL> prompt again.

I read in the manuals that you can get back into the widgets with RETALL and
XMANAGER, but I want this to happen automatically. I've fiddled with ON_ERROR,
ON_IOERROR, RETURN and such, but can't get it to work.

I *can* get it to not blast out, but then, when I try to load another image
(of the right size), I get the following error message:

% COLOR_QUAN: Variable is undefined: <UNDEFINED>.
% Execution halted at ILOAD_EVENT </home/avdev/ian/idlpro/widget/id_load.pro(
188)> (COLOR_QUAN).
% Called from XMANAGER </usr/local/idl/lib/widgets/xmanager.pro( 402)>.
% Called from ID </home/avdev/ian/idlpro/widget/id.pro( 289)>.
% Called from $MAIN$ .

ILOAD_EVENT and ID are mine. The COLOR_QUAN is used to display the 24-bit
data I'm reading in on the 8-bit display. Obviously, I can't tell which
variable it's choking on.

Finally, I can't tailor my extraction routine too much, as it is a general
utility that people use often.

Any ideas?

|-Ian Novack (Particle Man)----------------------------ian@gomez.jpl.nasa.gov-|
| "I am trying to fill a silent moment with Jet Propulsion Lab |
| non-relevant conversation." -- Lt. Cmdr. Data Pasadena, CA |
|-Disclaimer: Had this been an actual opinion, it would still be mine.--------|
[Message index]
 
Read Message
Previous Topic: Re: multiple images with postscript in wave ?
Next Topic: Re: Catching errors with widgets

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

Current Time: Sat Oct 11 02:27:16 PDT 2025

Total time taken to generate the page: 0.64610 seconds