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