Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HUnlock always after HLock?



On Nov 1, 2003, at 9:27 AM, Marc Poirier wrote:

I've always wondered... If I create a Handle and then I HLock() it, does
that mean that I then need to HUnlock() it before I DisposeHandle() it, or
can I skip HUnlock() and just dispose it?


You could just dispose of it.

But don't bother using HLock/HUnlock or HSetState on Mac OS X. (Unless you know that someone is going to explicitly look at those bits.) The handle will not move or be purged on OS X.

--smz
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.

dyld heap