Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: 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 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) *