Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!caen!uflorida!haven!mimsy!mojo!russotto From: russotto@eng.umd.edu (Matthew T. Russotto) Newsgroups: comp.sys.mac.programmer Subject: Re: Swapping Handles Message-ID: <1990Dec10.010223.2436@eng.umd.edu> Date: 10 Dec 90 01:02:23 GMT References: <2599@runxtsa.runx.oz.au> Sender: news@eng.umd.edu (C-News) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 20 In article <2599@runxtsa.runx.oz.au> karlg@runxtsa.runx.oz.au (Karl Goiser) writes: > >If I swap the master pointers (?) of two Handles like so: > >VAR > H1, H2: Handle; >... >Ptemp:= H2^; >H2^:= H1^; >H1^:= H2^; >... > >will I hurt anybody or anything (including myself)? Yes-- you could lose the flags byte under a 32-bit Memory manager, and other forms of heap corruption are probably also possible. -- Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu .sig under construction, like the rest of this campus.