Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!ginosko!uunet!mcsun!cernvax!ethz!ethz-inf!schorn From: schorn@inf.ethz.ch (Peter Schorn) Newsgroups: comp.sys.mac.programmer Subject: Bug in LSP V2.01? Message-ID: <3935@ethz-inf.UUCP> Date: 18 Oct 89 10:36:00 GMT Organization: Departement Informatik, ETH Zuerich Lines: 26 I've run into a problem with Lighspeed Pascal V2.01 which appears to be a compiler bug. I'm running LSP under Multifinder 6.1b7 on a Mac IIx in a 2MB partition. Running the following program with "Go" produces the error messages "Your Application Zone is damaged. Proceed with caution" and then "Nil dereference". These messages don't appear if the program is run in single stop mode (in fact it works correctly then). program test; type integerP=^integer; obj=object x:integerP; procedure init; end; procedure obj.init; procedure h(var y:integerP); begin new(y); y^:=19; end; begin h(x); end; var o: obj; begin new(o); o.init; writeLn(o.x^); end. Is this a compiler bug or am I doing something wrong? Peter schorn@inf.ethz.ch or schorn@cs.unc.edu