home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!ames!data.nas.nasa.gov!taligent!lsr.taligent.com!user
- From: lsr@taligent.com (Larry Rosenstein)
- Subject: Re: Verifying valid handles, how to?
- Message-ID: <lsr-270193181420@lsr.taligent.com>
- Followup-To: comp.sys.mac.programmer
- Sender: usenet@taligent.com (More Bytes Than You Can Read)
- Organization: Taligent, Inc.
- References: <C1Hyzu.Buo@iat.holonet.net> <1993Jan27.105834.12221@news.unomaha.edu>
- Date: Thu, 28 Jan 1993 02:15:13 GMT
- Lines: 14
-
- In article <1993Jan27.105834.12221@news.unomaha.edu>,
- salmon@cwis.unomaha.edu (David Salmon) wrote:
- >
- > If you always use ForgetObject, ForgetHandle, etc, your object handles
- > will always be NULL after they are deleted. Then you can simply check
- > the value of the handle for NULL to see if it has already been deleted.
-
- The problem is when 2 variables refer to the same handle. One would get
- set to NULL but the other will not.
-
- Larry Rosenstein
- Taligent, Inc.
-
- lsr@taligent.com
-