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

Home » Public Forums » archive » Re: IDL 6.3 segmentation fault
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: IDL 6.3 segmentation fault [message #48927 is a reply to message #48924] Thu, 01 June 2006 09:18 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
shd writes:

> Ok, I see the confusion. Clarification:
>
> ==============================
> pro _exit, top
> widget_control, top, /DESTROY
> end
>
> pro action_event, event
> widget_control, event.id, GET_UVALUE=action
>
> case action of
> ...
> 'exit': _exit, event.top
> ...
> endcase
> end
>
> pro build_gui
> ...
>
> ; Create 'File' menu.
> wmenu = widget_button(mbar, VALUE='File', /MENU, $
> EVENT_PRO='action_event')
> ...
> w = widget_button(wmenu, VALUE='Exit', UVALUE='exit', /SEPARATOR)
> ...
>
> ; Create toolbar.
> wtb = widget_base(tlb, UNAME='toolbar', /ROW, /TOOLBAR, $
> EVENT_PRO='action_event')
> ...
> w = widget_button(wtb, VALUE='Exit', UVALUE='exit', $
> TOOLTIP='Exit program.')
> ...
> end
> ==============================
>
> I probably should have just said that in the first place, huh?

Well, poorly named widget program, then. :-)

In any case, I don't see anything (except needless indirection) that
causes me any worries. Perhaps you are not calling the _EXIT procedure
you *think* you are calling. Easily done, I think, with this
kind of naming scheme.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: widget_control, event.TOP, /destroy
Next Topic: question about plot contours over a color figure

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

Current Time: Sat Oct 11 13:24:37 PDT 2025

Total time taken to generate the page: 1.36299 seconds