home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!caen!news
- From: Michael F. Kamprath <kamprath@caen.engin.umich.edu>
- Subject: Re: THINK Debugger Question
- Message-ID: <sqd-pmB@engin.umich.edu>
- Date: Tue, 18 Aug 92 04:29:37 EDT
- Organization: University of Michigan, Aerospace Engineering
- X-Useragent: Nuntius v1.1.1d5
- X-Xxdate: Tue, 18 Aug 92 04:29:54 GMT
- References: <1992Aug14.153137.873@natinst.com>
- Nntp-Posting-Host: 141.212.196.252
- Lines: 36
-
- In article <71221@apple.Apple.COM> Martin Minow, minow@Apple.COM writes:
- >steve.herman%express@freedom.msfc.nasa.gov (Steve Herman) notes that
- >his application never gets an open document apple event when running
- >under the Think C debugger. When you run under the debugger, your
- >application does not have its own signature, but (if I remember correctly),
- >uses 'KAHL'. Frontier has a work-around for this. If I were you, I'd assume
- >that TCL handles the four required AppleEvents correctly, assuming, of course,
- >that you set the SIZE flags correctly in the project type dialog, and
- >make sure the rest of your program works correctly.
- >
-
- I really don't think this would matter unless you are sending custom AEs
- manually from another program. The standard AE's sent by the system
- automatically use KAHL as the program signature.
-
- But, the thing to remember (I learned this the hard way) is to NEVER put
- a break point between WaitNextEvent() and AEProcessEvent(). If you
- do, the kHighLevelEvent that WNE() recieved will time out even before you
- get to click "go" again, and you will probaly get a noOustandingHLE
- error from AEProcessEvent(). Of course, this is not necessairky the fault
- of your program. (Editorial on) Symantec should figure a fix for this so
- that we could notice any errors in our event loop.
-
- But then again, what do I know, it could be impossible. Why did Apple go
- with AEProcessEvent and AE handlers? Why couldn't we handle the AE event
- loop? Would that be too difficult?
-
- ========================================================================
- | Michael F. Kamprath | The University of Michigan |
- | kamprath@caen.engin.umich.edu | Department of Aerospace Engineering |
- |-------------------------------+--------------------------------------+
- | And if a man can't change the world these days, |
- | I still believe he can change his own destiny. |
- | --Michael Peters (The Alarm) |
- | "The Spirit of '76" |
- ========================================================================
-