home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14379 < prev    next >
Encoding:
Internet Message Format  |  1992-08-22  |  1.0 KB

  1. Path: sparky!uunet!ogicse!reed!orpheus
  2. From: orpheus@reed.edu (P. Hawthorne)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: GetMenu Call Bombs Under 7, Not Under 6
  5. Message-ID: <1992Aug23.095901.11903@reed.edu>
  6. Date: 23 Aug 92 09:59:01 GMT
  7. Article-I.D.: reed.1992Aug23.095901.11903
  8. Organization: Reed College, Portland OR
  9. Lines: 17
  10.  
  11.  
  12.     Dear Net Landers,
  13.  
  14.     A section of code that uses GetMenu runs without fail under System
  15. 6.0.5, and yet bombs intermittently under System 7.0.1 Tuneup. Tracing
  16. execution with MacsBug, the failure appears to be caused by a jump to
  17. garbage code, in a call to CalcMenuSize, within the call to GetMenu. The
  18. menu resource looks okay, and uses only the standard MDEF. Replacing the
  19. GetMenu with GetResource makes the bombing less frequent, but does not
  20. eliminate the problem entirely.
  21.     The problem seems to be aggravated by using GetMenu while a command
  22. is being processed and a menu is hilited appropriately.
  23.  
  24.     Any ideas as to what's going on here?
  25.  
  26.     Sincerely,
  27.     Stumped In Stumptown (orpheus@reed.edu)
  28.