Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!ucbcad!ucbvax!hoser.berkeley.edu!bryce From: bryce@hoser.berkeley.edu (Bryce Nesbitt) Newsgroups: comp.sys.amiga Subject: Re: Dealing with lots of messages (WARNING!!! Intution bug!!) Message-ID: <22458@ucbvax.BERKELEY.EDU> Date: 8 Jan 88 19:28:25 GMT References: <4346@garfield.UUCP> <3094@cbmvax.UUCP> <22456@ucbvax.BERKELEY.EDU> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: bryce@hoser.berkeley.edu (Bryce Nesbitt) Organization: The Logic Foundation Lines: 24 Keywords: messages IDCMP MOUSEMOVE, intuition bug, workaround, ReportMouse() How could this be! I posted this horrid bug, and forgot to give a workaround! What is this world comming to? It's quite simple, since gadgets are the cause of the problem, we'll only call ReportMouse() when none are active: long key; ... key=LockIBase(0L); /* Wait utill Intuition is not busy, then lock */ ReportMouse(boolean,Window); UnlockIBase(key); Tomas Rokicki pointed out that ModifyIDCMP() could also be used for this function. I plugged it into the program I had that was failing, and sure enought it works ok. ModifyIDCMP() does not need the LockIBase() kludge. Thanks Tomas! |\ /| . Ack! (NAK, SOH, EOT) {o O} . bryce@hoser.berkeley.EDU -or- ucbvax!hoser!bryce (or try "cogsci") (") U "Your theory is crazy... but not crazy enought to be true." -Niels Bohr