IDL Hard Crashing [message #87940] |
Tue, 04 March 2014 15:44  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
I'm doing some object/widget programming today and I'm having a very
hard time keeping IDL on its feet. Can't remember this many serious
crashes.
The last time IDL crashed I saw this message (I think): "Attempt to
delete non-existent widget from hash table."
I'm not using hashes in my code, so I presume this message came from
IDL. Any ideas about what it might mean? I am doing the normal clean-up
of objects. And, if the objects are widgets, destroying them properly (I
think). IDL 8.2.3 on Windows. The problem occurs when my program stops
with a program error and I try to get it going again.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
|
Re: IDL Hard Crashing [message #87942 is a reply to message #87941] |
Tue, 04 March 2014 17:38  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Matthew Argall writes:
>
> I ran into this problem once before. In my program, all of the widgets had a Kill_Notify event handler destroyed the object it was associated with. In my primary object program, I mistakenly had the cleanup method destroy the objects associated with the widgets from top down.
>
> As a concrete example, say I had a window widget/object and a top level base widget/object. Killing the top level base widget also kills all its child widgets (the window widget). The Kill_Notify event handler then destroys the associated object.
>
> But what I was doing is destroying the window widget/object first, so that when the top level base widget was destroyed, the window no longer existed when the base tried to kill it. That is what generated the error.
This sounds about right. Thanks. I'll look into it.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|