home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13219 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.5 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!unmvax!constellation!apple!mumbo.apple.com!apple!apple!lai
  2. From: lai@Apple.COM (Ed Lai)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: AESend returns bogus error.  Help!
  5. Message-ID: <70626@apple.Apple.COM>
  6. Date: 30 Jul 92 01:04:13 GMT
  7. References: <COLIN.92Jul29165813@wrangel.Cayman.COM> <1992Jul29.220620.27897@cs.yale.edu>
  8. Distribution: comp
  9. Organization: Apple Computer Inc., Cupertino, CA
  10. Lines: 24
  11.  
  12. In article <1992Jul29.220620.27897@cs.yale.edu> bitting-douglas@CS.YALE.EDU (Pondscum Czar) writes:
  13. >
  14. >In article <COLIN.92Jul29165813@wrangel.Cayman.COM> colin@Cayman.COM (Colin "Atilla" Steele) writes:
  15. >
  16. >>     result = AEDisposeDesc(&theAddressDesc);
  17. >[...]          ^^^^^^^^^^^^^
  18. >>     result = AESend(&theAppleEvent,
  19. >[...]          ^^^^^^
  20. >
  21. >I believe you have these out of order... call AEDisposeDesc after the
  22. >call to AESend... or AESend won't know where to send it.
  23. >
  24.  
  25. The order is OK, the addressDesc is already copied in AECreateAppleEvent.
  26. The problem is that targetID is not set up properly since the location
  27. field was not set.
  28.  
  29. /* Disclaimer: All statments and opinions expressed are my own */
  30. /* Edmund K. Lai                                               */
  31. /* Apple Computer, MS37-UP                                     */
  32. /* 20525 Mariani Ave,                                          */
  33. /* Cupertino, CA 95014                                         */
  34. /* (408)974-6272                                               */
  35. zW@h9cOi
  36.