Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!brutus.cs.uiuc.edu!apple!Apple.COM!lsr From: lsr@Apple.COM (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: C Programming Bugs Message-ID: <7226@goofy.Apple.COM> Date: 16 Mar 90 03:25:38 GMT Sender: usenet@Apple.COM Organization: Objects-R-Us, Apple Computer, Inc. Lines: 18 References:<1990Mar15.052046.20348@athena.mit.edu> <530@fwi.uva.nl> In article <530@fwi.uva.nl> freek@fwi.uva.nl (Freek Wiedijk) writes: > In article <1990Mar15.052046.20348@athena.mit.edu> > rsfinn@athena.mit.edu (Russell S. Finn) writes: > > > >The bug is that MaxMem is being called with an argument of $00800000, > >instead of the address of a longword (IM II-38); > > This should be a lesson to all: NEVER program in C! :-) :-) :-) In writing my ApplicationMenu INIT, I've seen this kind of bug in many applications. You would be surprised to see how many application pass the address of a Point to MenuSelect instead of the Point itself. Larry Rosenstein, Apple Computer, Inc. Object Specialist Internet: lsr@Apple.com UUCP: {nsc, sun}!apple!lsr AppleLink: Rosenstein1