Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!ucdavis!iris!lim From: lim@iris.ucdavis.edu (Lloyd Lim) Newsgroups: comp.sys.mac.programmer Subject: Re: ROM Unlocks handles Message-ID: <6184@ucdavis.ucdavis.edu> Date: 7 Dec 89 02:08:05 GMT References: <2744@dogie.macc.wisc.edu> <3838@atr-la.atr.co.jp> <32977@ucbvax.BERKELEY.EDU> <5640@internal.Apple.COM> Sender: uucp@ucdavis.ucdavis.edu Reply-To: lim@iris.ucdavis.edu (Lloyd Lim) Organization: U.C. Davis - Department of Electrical Engineering and Computer Science Lines: 27 In article <5640@internal.Apple.COM> shebanow@Apple.COM (Andrew Shebanow) writes: >In article <32977@ucbvax.BERKELEY.EDU> oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) writes: >>[...] >> temp = (**hand).field; >> SystemCall(&temp); >> (**hand).field = temp; >>[...] > >Ack! Please, please don't do this! If the system call expects a >Handle, you should never, ever pass it a fake handle. While your >technique will work on current Mac System Software, it will break >[...] >Andrew Shebanow >MacDTS Ack! Fake handle? What, where? The SystemCall just wants a pointer to a variable (Pascal VAR parameter). Copying a field into a local temporary is a perfectly valid way of eliminating moving memory problems. There are no fake handles here. Please read a little more carefully. DTS has not looked good lately with the recent tech note errors and flame war postings. +++ Lloyd Lim Internet: lim@iris.ucdavis.edu (128.120.57.20) Compuserve: 72647,660 US Mail: 146 Lysle Leach Hall, U.C. Davis, Davis, CA 95616