home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14612 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.9 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!taligent!apple!lai
  2. From: lai@Apple.COM (Ed Lai)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: AEDisposeDesc
  5. Message-ID: <71728@apple.Apple.COM>
  6. Date: 27 Aug 92 16:34:01 GMT
  7. References: <w0bn2sb.mspace@netcom.com>
  8. Organization: Apple Computer Inc., Cupertino, CA
  9. Lines: 37
  10.  
  11. In article <w0bn2sb.mspace@netcom.com> mspace@netcom.com (Brian Hall) writes:
  12. >Is it safe to call AEDisposeDesc on an AEDesc more than once?  I "<noticed
  13. >that after the call, the AEDesc passed in had a type of "typeNull" and
  14. >a datahandle of "NULL".  Does AEDisposeDesc know enough not to try and
  15. >dispose of a record like that?
  16.  
  17. Whenever the dataHandle is NIL, AEDisposeDesc is a nop, since AEDisposeDesc
  18. changes the AEDesc to typeNull dataHandle nil after disposing, accidential
  19. calling AEDisposeDesc again would not hurt.
  20.  
  21. >
  22. >On a related note, is it safe to call AEDisposeDesc when the AEDesc is
  23. >{0, NULL} (essentially 0,0)) instead of { typeNull, NULL}?  This, of course,
  24. >assumes that it is OK to call AEDisposeDesc on {typeNull, NULL} in
  25. >the first place.
  26. >
  27.  
  28. See above.
  29.  
  30. >If it is not OK, I think I will end up making a ForgetAEDesc along
  31. >the lines of TCLs ForgetHandle routine.
  32. >
  33. >-- 
  34. >
  35. > \ | /   | Brian Hall                 mspace@netcom.com
  36. > - : -   | Mark/Space Softworks       Applelink: markspace
  37. >  /|\    |                            America Online: MarkSpace
  38. > |-+-|   |
  39. >/-\|/-\  | Stupidity is its own punishment.
  40.  
  41. /* Disclaimer: All statments and opinions expressed are my own */
  42. /* Edmund K. Lai                                               */
  43. /* Apple Computer, MS37-UP                                     */
  44. /* 20525 Mariani Ave,                                          */
  45. /* Cupertino, CA 95014                                         */
  46. /* (408)974-6272                                               */
  47. zW@h9cOi
  48.