Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!ames!amdahl!dlb!ardent!rap From: rap@ardent.UUCP (Rob Peck) Newsgroups: comp.sys.amiga Subject: Re: CP/M Keywords: PECK PROGRAMMERS GUIDE ERRATA Message-ID: <440@ardent.UUCP> Date: 28 Jul 88 18:13:02 GMT Organization: Dana Computer, Inc., Sunnyvale, CA Lines: 20 This is Errata4 for the Programmers Guide To The Amiga: In listing 4.9, the main barchart program, the line WaitPort(w->UserPort); should be moved down to become the first statement inside the wait(1) loop. The program apparently works without this change, but has the unfortunate side effect of a polling-the-UserPort-busy-wait-loop. The fix makes the program multi-tasking friendly. So the resultant change makes the loop: while(1) { WaitPort(w->UserPort); msg=(struct IntuiMessage *)GetMsg(w->UserPort); ... and so on. Rob Peck