Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!cornell!uw-beaver!teknowledge-vaxc!jbrugge From: jbrugge@teknowledge-vaxc.ARPA (John Brugge) Newsgroups: comp.sys.mac.programmer Subject: why is LSP complaining? Message-ID: <26147@teknowledge-vaxc.ARPA> Date: 13 Dec 88 16:56:48 GMT Reply-To: jbrugge@teknowledge-vaxc.UUCP (John Brugge) Organization: Teknowledge, Inc., Palo Alto CA Lines: 37 Using LSP 1.11 (waiting for 2.0 upgrade to arrive), I'm getting either of "Illegal address exception" or "NIL reference (trap 0)" (occurs most often) while processing an update event. It always occurs at the same call: BeginUpdate(myWindow); ... --->> DrawControls(myWindow); ... EndUpdate(myWindow); and it doesn't seem to matter whether I put DrawControls() between the Begin/EndUpdate -- it always stops at that routine (the other portions of the update code use myWindow w/no problem). This just started happening recently, after I tried adding some code to do printing; the application had worked fine before then, so I removed the printing code (all in a seperate file), but the problem stayed around. The "Illegal address exception" supposedly is a good indication that I'm accidently stepping on something I shouldn't be. And as they say, it's a difficult one to track down. I believe them. The "NIL reference", though, doesn't seem to be referring to myWindow; after the program halts, I can do writeln's in the Instant window using myWindow references with no problem. And I've looked at myWindow w/LightsBugs at various points before it stops, and it doesn't look any different than after it stops (nor do any of the control handles on its control list). Further, I can build the project as an application and run that with no problems (range-checking still on during the build). Particulars: LSP v1.11, System 3.2, Finder 5.3 on a Mac XL(!) (although I've duplicated the behavior on a Mac Plus w/a later system) Thanks for any clues, (even if it's "wait for 2.0") John