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

Home » Public Forums » archive » Re: leap variables and 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: leap variables and widgets [message #39150] Tue, 20 April 2004 08:55
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Olivier Gasnault writes:

> Could anyone point out what goes wrong in the set of codes below.
>
> Run the widget1 procedure and click twice on the button.
> The program stops then.
> At this stage pvar is not a valid pointer, while it should !
> Why ?
>
> If you comment the ptr_free command then the problem disappear...
> But I do not understand why the ptr_free would be executed before the
> end of the widget2 procedure.

You make the mistake of thinking your widget2 program is
blocking in the same way that your widget1 program is blocking
the IDL command line. But it isn't. Only the program that gets
to the command line first will block. All the other programs
will run through their blocks. What you want is for widget2
to be a "modal" or "popup" program. Here are a couple of
articles you will want to read:

http://www.dfanning.com/widget_tips/modal_blocking.html
http://www.dfanning.com/widget_tips/popup.html

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Previous Topic: leap variables and widgets
Next Topic: mpeg quality

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

Current Time: Sun Oct 12 10:44:36 PDT 2025

Total time taken to generate the page: 2.48054 seconds