Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga.tech Subject: Re: WaitPort, GetMsg, ReplyMsg Message-ID: <8804182050.AA15158@cory.Berkeley.EDU> Date: 18 Apr 88 20:50:43 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 20 :This tells me that after the WaitPort call, message will point to the :first message in the list. The funny thing is that when I do a GetMsg(port) :I get a different address, although it also is listed as returning a pointer :to the first message in the port's message list. What's going on here? :I wanted to see if I could do just the following: : : message = WaitPort(port); : code = message->Code; : class = message->Class; : ReplyMsg(message); WaitPort() does NOT remove the message from the port. you should NEVER ReplyMsg() without GetMsg() it first. I.E.: WaitPort(port); message = GetMsg(port); code = message->Code; class = message->Class; ReplyMsg(message); -Matt