home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14132 < prev    next >
Encoding:
Text File  |  1992-08-17  |  2.5 KB  |  50 lines

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