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

Home » Public Forums » archive » Re: Canceling or clearing TIMER events
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: Canceling or clearing TIMER events [message #55756 is a reply to message #55753] Fri, 07 September 2007 08:38 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
M. Katz writes:

> The IDL Help explanation of CLEAR_EVENTS isn't clear enough to say
> whether it applies in this case. I can envision a case where the user
> closes the widget, and then the event arrives all dressed up with
> nowhere (no valid widget IDs) to go.

I would guess this is what happens. CLEAR_EVENTS will clear
events that are on the event queue, but your timer event hasn't
been dispatched to the queue yet, so it can't be cleared.

I'd say you will probably have to put a KILL_NOTIFY on
your TLB and delay destroying the widget until that last
timer event shows up.

Cheers,

David

P.S. Of course, there is always the chance that IDL is
smart enough to NOT send the timer to a widget that
doesn't exist, but I would think the chance is vanishingly
small. :-)

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Image overlapping
Next Topic: Supervised classification under IDL

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

Current Time: Sun Nov 30 17:45:21 PST 2025

Total time taken to generate the page: 1.68145 seconds