Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!samsung!munnari.oz.au!uniwa!fennel.cc.uwa.oz.au!a_dent From: a_dent@fennel.cc.uwa.oz.au Newsgroups: comp.sys.mac.programmer Subject: Re: Another THINK Pascal gotcha - "With" instance vars Message-ID: <1991Jan29.021918.2841@fennel.cc.uwa.oz.au> Date: 28 Jan 91 18:19:18 GMT References: <1991Jan25.233122.2825@fennel.cc.uwa.oz.au> <5479@husc6.harvard.edu> Organization: University of Western Australia Lines: 27 In article <5479@husc6.harvard.edu>, siegel@endor.uucp (Rich Siegel) writes: > > Also, calling New( ) for an instance variable is a good way to > crash, since it involves taking the address of the instance variable. This > will be fixed in the next version of the compiler... Thanks a zillion - I do this all over the place! (I think my app will probably survive a Heapscramble now, will try it & let the net know if it still doesn't - there may be yet another "vulnerability" out there in the undergrowth, Bud.) > >>I suspect that the THINK environment does a lot of locking of objects behind >>the scenes so this one probably also qualifies as a "only crashes compiled >>applications" scenario. > > In fact, the debugger does absolutely nothing "behind the scenes"; > crashes like this are usually purely random. I have to admit a statician would sneer at the size of the sample on which I ventured this opinion :-) > > Rich Siegel Symantec Languages Group Internet: siegel@endor.harvard.edu Andy Dent A.D. Software phone 09 249 2719 Mac & VAX programmer 94 Bermuda Dve, Ballajura a_dent@fennel.cc.uwa.oz Western Australia 6066 a_dent@fennel.cc.uwa.oz.AU (international)