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

Home » Public Forums » archive » Re: Please help with buggy widget code
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: Please help with buggy widget code [message #2547] Tue, 26 July 1994 16:54
rouse is currently offline  rouse
Messages: 17
Registered: July 1994
Junior Member
Thanks to Wayne for providing the fix for my bug.

> into a test version. The problem is this. After the first 1 or 2 reads some
> variable becomes undefined causing the FITS reader to crash. Is there
> something about event handlers and reading files that I'm missing here? The
> FITS reader is READFITS.PRO in astrolib. I'm running version 3.0.0 on a
> DECstation 5000 with Ultrix4.2A. I've included the test version below. It's

You don't say what error message your program crashes with, but there used
to be a problem with an interaction between STRNUMBER.PRO (a procedure
called by SXPAR called by READFITS) and widget programming. In early
versions of IDL (I think it was true of V3.0), the IDL stack would get
corrupted when STRNUMBER tried to convert an empty string (' ') to a number.
You wouldn't get an error message right away, but later in the program
the some widgets would crash. I modified STRNUMBER.PRO in February 1993
to include a special check for empty strings, and I also think that later
version of IDL don't have this bug.

--Wayne Landsman landsman@stars.gsfc.nasa.gov
[Message index]
 
Read Message
Previous Topic: PRO: Color Selection
Next Topic: IDL 3.6.1 A lot of bugs and annoyance

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

Current Time: Sat Oct 11 06:13:51 PDT 2025

Total time taken to generate the page: 0.65585 seconds