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