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

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!yale.edu!yale!gumby!destroyer!ncar!noao!arizona!jtgorman
  2. From: jtgorman@cs.arizona.edu (J. Taggart Gorman)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: kAEQuitApplication driving me batty
  5. Keywords: apple events
  6. Message-ID: <21043@optima.cs.arizona.edu>
  7. Date: 25 Aug 92 22:53:22 GMT
  8. Sender: news@cs.arizona.edu
  9. Lines: 30
  10.  
  11.  
  12.   Well not just kAEQuitApplication, but the whole thing of sending a Quit event
  13. to a process.
  14.  
  15.   I'm writing in C and have code from IM VI and the sample code from Apple,
  16. Process Manager.
  17.   The problem : on my IIsi running 7.0.1+ and coding on Think C 5.0.2, nothing
  18. can send Quit events.  Not my code, not Apple's sample code, not the pre-
  19. complied Process Manager, nor the program ProcessWatcher.  I don't know why
  20. ProcessWatcher can't send Quit events, but when both my code and Process
  21. Manager call AESend, the OSErr returned is -903, which IM VI tells me is a
  22. "noPortErr - Invalid port name; Unable to open port or bad port refernce
  23. number".
  24.   Somebody want to try and tell me why AESend is barfing on sending quit events
  25. on my machine?>  Could I have a nasty INIT conflict?  (Hard to turn them of
  26. since I use Autodoubler. *sigh*)
  27.  
  28.   If you want to see my code, it's exactly the same as the sample code from
  29. Apple, and since the precompiled program from them doesn't work either, I
  30. suspect something other than bad code.
  31.  
  32.  
  33.   ARGH!  Help me!  Please!  This has been keeping me up at night!
  34.  
  35.   Thank you.
  36.  
  37. |--------------------------------|    "If you were happy all of your life,
  38. |      J. Taggart Gorman Jr.     |     you wouldn't be human - you'd be a
  39. | jtgorman@caslon.cs.arizona.edu |     game show host."
  40. |--------------------------------|             Winona Ryder, in _Heathers_
  41.