Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!sci.kun.nl From: hvlstud2@sci.kun.nl (Margo Pulles) Newsgroups: comp.lang.pascal Subject: Question about turbo pascal 5.5 Message-ID: <2746@wn1.sci.kun.nl> Date: 7 Feb 91 17:02:16 GMT Sender: root@sci.kun.nl Organization: University of Nijmegen, The Netherlands Lines: 46 Bug in TP 5.5? This is Version 2.00 of my question. This time a more enhanced specification. When I use Turbo Pascal 5.5, I have the following problem : I can declare an OBJECT x on the following way : TYPE x = OBJECT { . . . } CONSTRUCTOR Init(Name : PathStr); { Use Dos PathStr } { . . . } END; VAR y : x; I first called the method Init this way : WITH y DO BEGIN Init(LocalName); { . . . } END; But that didn't work. (It compiled well). When I looked at it using Turbo Debugger 1.5, I saw that Name contained rubbish after the call. (Inside the method Init). But when I called Init using y.Init(LocalName); everything was allright. You have to know that x is declared in an unit wich is in the overlay section. Did anybody have this problem before, is it bad programming, or contains TP 5.5 a bug? I'm waiting fo your answers. Gert van het Slot (e-mail : fcc@chem.ruu.nl) when can't mail to this adress try e-mail hvlstud2@sci.kun.nl