Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!elroy!cit-vax!tybalt.caltech.edu!jjfeiler From: jjfeiler@tybalt.caltech.edu (John J. Feiler) Newsgroups: comp.sys.amiga.tech Subject: Re: Strange Crashes and SDB Message-ID: <7744@cit-vax.Caltech.Edu> Date: 30 Aug 88 22:52:00 GMT References: <8808301933.AA16947@cory.Berkeley.EDU> Sender: news@cit-vax.Caltech.Edu Reply-To: jjfeiler@tybalt.caltech.edu.UUCP (John J. Feiler) Organization: California Institute of Technology Lines: 29 In article <8808301933.AA16947@cory.Berkeley.EDU> dillon@CORY.BERKELEY.EDU (Matt Dillon) writes: -:PutMsg(loaderport,hellomessage); -:WaitPort(myport); <- here is where it crashes -:reply = GetMsg(myport); -: -:Any suggestions? -: - Well, it isn't enough of a fragment to tell you what is wrong. - loaderport must be a pointer to a port, obviously. Same goes for - myport. hellomessage must be a pointer to a message. hellomessage - must have mn_ReplyPort set to myport if you intend for it to come - back to myport. - myport must be properly initialized.... ln_Type = NT_PORT, mp_SigBit = - signal number, mp_Flags = PA_SIGNAL, mp_SigTask = FindTask(NULL), and - the port's list properly initialized: NewList(&myport->MsgList). - -Matt loaderport and myport and hellomessage and mn_replyport are set correctly I use muport = CreatePort("loader",0L); or something like that, so that should do all of the proper initialization for myport, right? John ============== John Feiler "Life's like a jigsaw, you get the 709 Locust #7 straight bits, but there's something Pasadena, CA 91101 missing in the middle..." jjfeiler@tybalt.caltech.edu -- XTC What's the difference between a duck? ==============