home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14587 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.2 KB  |  30 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!sdd.hp.com!decwrl!csus.edu!netcom.com!mspace
  3. From: mspace@netcom.com (Brian Hall)
  4. Subject: AEDisposeDesc
  5. Message-ID: <w0bn2sb.mspace@netcom.com>
  6. Date: Thu, 27 Aug 92 01:22:08 GMT
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. Lines: 20
  9.  
  10. Is it safe to call AEDisposeDesc on an AEDesc more than once?  I "<noticed
  11. that after the call, the AEDesc passed in had a type of "typeNull" and
  12. a datahandle of "NULL".  Does AEDisposeDesc know enough not to try and
  13. dispose of a record like that?
  14.  
  15. On a related note, is it safe to call AEDisposeDesc when the AEDesc is
  16. {0, NULL} (essentially 0,0)) instead of { typeNull, NULL}?  This, of course,
  17. assumes that it is OK to call AEDisposeDesc on {typeNull, NULL} in
  18. the first place.
  19.  
  20. If it is not OK, I think I will end up making a ForgetAEDesc along
  21. the lines of TCLs ForgetHandle routine.
  22.  
  23. -- 
  24.  
  25.  \ | /   | Brian Hall                 mspace@netcom.com
  26.  - : -   | Mark/Space Softworks       Applelink: markspace
  27.   /|\    |                            America Online: MarkSpace
  28.  |-+-|   |
  29. /-\|/-\  | Stupidity is its own punishment.
  30.