Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!decvax!tektronix!tekig5!brianr From: brianr@tekig5.PEN.TEK.COM (Brian Rhodefer) Newsgroups: comp.sys.amiga.tech Subject: Re: Ultimate Wait-GetMsg strategy (?) Message-ID: <3777@tekig5.PEN.TEK.COM> Date: 13 Feb 89 22:59:28 GMT References: <8902100658.AA16049@postgres.Berkeley.EDU> Reply-To: brianr@tekig5.PEN.TEK.COM (Brian Rhodefer) Organization: Tektronix, Inc., Beaverton, OR. Lines: 20 I have obviously not yet attained the Zen of the Amiga, because the construct under discussion, >:while (1) { >: while (!(imsg= GetMsg(win->UserPort))) >: Wait (1<UserPort->mp_SigBit); >: select imsg->Class and break when ended >:} doesn't seem "*perfectly fine*" to me at all, notwithstanding Tomas R's endorsement. Presuming that the fragment was quoted from the original posting without distortion, it sure looks to me that for the "select imsg->Class and break" portion of the code, the "imsg" pointer is NULL! Still unenlightened, Brian Rhodefer