home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22300 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.0 KB  |  27 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. 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
  3. From: lsr@taligent.com (Larry Rosenstein)
  4. Subject: Re: Verifying valid handles, how to?
  5. Message-ID: <lsr-270193181420@lsr.taligent.com>
  6. Followup-To: comp.sys.mac.programmer
  7. Sender: usenet@taligent.com (More Bytes Than You Can Read)
  8. Organization: Taligent, Inc.
  9. References: <C1Hyzu.Buo@iat.holonet.net> <1993Jan27.105834.12221@news.unomaha.edu>
  10. Date: Thu, 28 Jan 1993 02:15:13 GMT
  11. Lines: 14
  12.  
  13. In article <1993Jan27.105834.12221@news.unomaha.edu>,
  14. salmon@cwis.unomaha.edu (David Salmon) wrote:
  15. > If you always use ForgetObject, ForgetHandle, etc, your object handles
  16. > will always be NULL after they are deleted. Then you can simply check
  17. > the value of the handle for NULL to see if it has already been deleted.
  18.  
  19. The problem is when 2 variables refer to the same handle.  One would get
  20. set to NULL but the other will not.
  21.  
  22. Larry Rosenstein
  23. Taligent, Inc.
  24.  
  25. lsr@taligent.com
  26.