Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!apple!stevec From: stevec@Apple.COM (Steve Christensen) Newsgroups: comp.sys.mac.programmer Subject: Re: HLock interdiction?? Keywords: MacTutor, Memory Manager, DogCow Message-ID: <10348@goofy.Apple.COM> Date: 21 Sep 90 16:48:59 GMT References: <1990Sep21.043054.24649@cunixf.cc.columbia.edu> Organization: Apple Computer Inc., Cupertino, CA Lines: 20 jtt@cunixd.cc.columbia.edu (James T. Tanis) writes: >while reading the September issue of MacTutor, in the Mousehole echo, >I saw a disturbing exchange... > >the gist was, that HLock would _Unlock_ an object if it was locked to >begin with. Is this the case? Should I call HGetState first, to determine >whether a handle is locked, and if so... with what mask??? Was this described as a bug or feature? HLock has always locked a block for me, and HUnlock has unlocked it. It's never toggled the state. steve -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ whoami? Steve Christensen snail: Apple Computer, 20525 Mariani Ave, MS-81CS, Cupertino, CA 95014 Internet: stevec@goofy.apple.com AppleLink: stevec CompuServe: 76174,1712