Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!necntc!ames!lll-tis!lll-lcc!ptsfa!ihnp4!homxb!mtuxo!mtune!lzaz!lznh!bob From: bob@lznh.UUCP (<10000>Bob Lemley) Newsgroups: comp.sys.mac Subject: Re: Re: When to HLock Message-ID: <332@lznh.UUCP> Date: Wed, 14-Oct-87 18:40:19 EDT Article-I.D.: lznh.332 Posted: Wed Oct 14 18:40:19 1987 Date-Received: Sat, 17-Oct-87 05:33:45 EDT References: <960@mntgfx.MENTOR.COM> <2961@husc6.UUCP> Organization: AT&T Lines: 11 Summary: Not actually. > In article <2961@husc6.UUCP>, fry@huma1.HARVARD.EDU (David Fry) writes: >> In article <960@mntgfx.MENTOR.COM> tomc@mntgfx.MENTOR.COM (Tom Carstensen) writes: > >Question: Do you need to HLock in the following [ excess removed ] > MoveHHi(TheText); > HLock(TheText); > myWindow = NewWindow( , ,...,(**TheText).nLines ); > HUnlock(TheText); HLock is not required here because the dereferencing is done BEFORE the JSR to NewWindow.