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

Home » Public Forums » archive » Re: Beginner Question: Disappearing Info Structure/Motion 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: Beginner Question: Disappearing Info Structure/Motion Events [message #27586 is a reply to message #27527] Thu, 25 October 2001 15:03 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
sandy (sehgal@oasis.rad.upenn.edu) writes:

> The Event Handler for my program can't seem to "check out" and replace
> the Info Structure of event.top fast enough using the No_Copy technique
> when Motion_Events is set in a draw widget. The Info Structure always
> becomes undefined, so that the next time it's needed the program
> crashes. Normally this occurs, not surprisingly, as soon as the mouse
> is moved, when another motion event is generated
>
> It works if I just don't set the No_Copy keyword, but this bothers me
> because David Fanning says I should be concerned about memory management
> (I got your new book two weeks ago). There must be something I'm not
> understanding.

No, I can assure you IDL is fast enough. :-)

I'm guessing that one or more of your event handlers
is not "checking in" the info structure before it
exits. This is the classic symptom of that error.

Make sure that everywhere you check the info structure
out you also check it in before you leave that event
handler. (A RETURN somewhere other than at the end
of the procedure is a great place to look.)

If worst comes to worst, send me your program.
If I can't spot this error with 30 seconds I
buy you a beer. :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Previous Topic: Reversing Object Graphics Axis Range
Next Topic: *.sav file

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

Current Time: Sat Oct 11 12:15:23 PDT 2025

Total time taken to generate the page: 0.48227 seconds