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

Home » Public Forums » archive » IDL Hard Crashing
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDL Hard Crashing [message #87940] Tue, 04 March 2014 15:44 Go to next message
David Fanning is currently offline  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 #87941 is a reply to message #87940] Tue, 04 March 2014 16:08 Go to previous messageGo to next message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
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.
Re: IDL Hard Crashing [message #87942 is a reply to message #87941] Tue, 04 March 2014 17:38 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Hymap NVDI
Next Topic: idl syntax error

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

Current Time: Wed Oct 08 11:35:19 PDT 2025

Total time taken to generate the page: 0.00618 seconds