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

Home » Public Forums » archive » Re: Almost dead 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
Re: Almost dead widgets [message #19992 is a reply to message #19991] Mon, 15 May 2000 00:00 Go to previous messageGo to previous message
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
Ben Tupper wrote:

> I have a blocking widget application that calls a modal widget
> application. Carefully planted bugs (not planted by me, of course) in
> the second application crash the application. I can clean up the
> second (crashed) widget but not the first. Even the system control
> button with 'QUIT' doesn't quite do it. It is, as David F describes,
> almost dead but not entirely dead. So far, my solution involves brute
> force and ignorance, which works but is messy: I ignore the widget
> carnage until my desktop looks like a checkerboard, then I exit IDL when
> no one can see what I'm doing. I have never bumped into this before,
> so I'm not sure what I've done to cause this mess. I'm not even sure
> what info would be helpful to identifiy the problem. Any suggestions
> greatly appreciated.
>
>

Hello,

Thanks to all for the help. I discovered what may be the problem. In the
first routine's cleanup procedure, I failed to check for the existence of
top level base's info structure before trying to free the pointers it
contained. I can't say I understand why the widget is not destroyed
(completely dead) by WIDGET_CONTROL, Even.Top, /Destroy before XMANAGER
calls my cleanup procedure, but maybe I don't need to.

It took me a while to figure this out for two reasons; (1) I didn't (and
haven't before) done any error checking in my cleanup routine and (2) I
couldn't get the problem to happen again (until just now).

At first, I was really wowed by David's ERROR_MESSAGE because after I
sprinkled it throughout the routines, I couldn't get the problem to occur
again. Geez, that's good software: not only does it report diagnostics but
also it heals! I'm gonna tape a copy of it on the inside of the hood of my
car!

Ben


--
Ben Tupper

Bigelow Laboratory for Ocean Science
tupper@seadas.bigelow.org

pemaquidriver@tidewater.net
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Object Data and pointer assignments
Next Topic: Re: Plot bug or another "strange feature" ?

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

Current Time: Thu Oct 09 06:09:58 PDT 2025

Total time taken to generate the page: 0.55892 seconds