Re: IDL 6.3 segmentation fault [message #48930 is a reply to message #48929] |
Thu, 01 June 2006 08:39  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
shd writes:
> I wanted to post this as a reply to a thread on this group called
> 'How to debug seg fault' but it's past the 30 day mark. The author of
> that thread experienced something similar.
>
> I'm getting a bit of odd behavior from my widget program on Ubuntu
> 5.10. My GUI has a 'File' menu and a toolbar, both of which contain an
> 'Exit' item which execute the exact same code:
>
> ====================
> pro _exit, top
> widget_control, top, /DESTROY
> end
> ====================
>
> I'm working from the command-line interpreter, not the IDE. Here's the
> wierdness:
>
> I compile and launch my program and press the 'Exit' button on the
> toolbar. When I try to re-launch the program, my GUI doesn't come up
> and IDL exits with only a 'Segmentation fault' message. However, if I
> exit my GUI by simply killing the window (clicking the 'X' on the
> border), the seg. fault doesn't occur. Also, if I exit the GUI by
> selecting 'Exit' from the 'File' menu, the seg. fault doesn't occur.
> So I launched the IDE to step through the program and it got much
> stranger. I can't reproduce the segmentation fault from the IDE no
> matter how I exit my GUI.
>
> Any else seen something like this?
Strangely written widget program!
This is not an event handler, so I presume it is a KILL_NOTIFY
callback. But, assigned to two different widgets!? I suggest
you are not killing what you *think* you are killing. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|