Article View: comp.sys.mac
Article #19965Re: When to HLock
From: Richard Siegel
Date: Thu, 08 Oct 1987 12:10
Date: Thu, 08 Oct 1987 12:10
19 lines
1276 bytes
1276 bytes
In article <960@mntgfx.MENTOR.COM> tomc@mntgfx.MENTOR.COM (Tom Carstensen) writes:
>Question: Do you need to HLock in the following
>kind of situation?:
>
>TEHandle TheText;
>lines = (**TheText).nLines
No, since you're not calling a routine that might compact the heap,
you're OK. Besides, you're double-dereferencing the handle, which is
equally safe.
--Rich
**The opinions stated herein are my own opinions and do not necessarily
represent the policies or opinions of my employer (THINK Technologies, Inc).
* Richard M. Siegel | {decvax, ucbvax, sun}!harvard!endor!singer *
* Customer Support | singer@endor.harvard.edu *
* THINK Technologies, Inc. (No snappy quote) *
Technical Details
Message-ID:
<2957@husc6.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!endor!singerReferences:
<960@mntgfx.MENTOR.COM>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!endor!singer From: singer@endor.harvard.edu (Richard Siegel) Newsgroups: comp.sys.mac Subject: Re: When to HLock Message-ID: <2957@husc6.UUCP> Date: Thu, 8-Oct-87 08:10:03 EDT Article-I.D.: husc6.2957 Posted: Thu Oct 8 08:10:03 1987 Date-Received: Sun, 11-Oct-87 02:47:10 EDT References: <960@mntgfx.MENTOR.COM> Sender: news@husc6.UUCP Reply-To: singer@endor.UUCP (Richard Siegel) Organization: THINK Technologies, Inc., Bedford, MA Lines: 19