home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!wupost!waikato.ac.nz!aukuni.ac.nz!russells
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: death of a global variable...
- Message-ID: <1992Aug14.005736.1923@ccu1.aukuni.ac.nz>
- From: russells@ccu1.aukuni.ac.nz (Russell Street)
- Date: Fri, 14 Aug 1992 00:57:36 GMT
- References: <1992Aug13.191303.17858@microsoft.com>
- Organization: University of Auckland, New Zealand.
- Keywords: programming help, weird bug?
- Lines: 17
-
- peterbak@microsoft.com (Peter Bako) writes (well sort of):
-
- > ... why do things get trashed ....
- ...
- >MenuHandle theMenus[NumOfMenus];
- >DrawRec theImage;
- ...
- >During the setup look the MenuHandle array gets filled in with 4 handles
- ...
- >Now here is the catch! By watching the value of theMenus[4] (my last menu)
- ^^^^^
- Remember in C arrays indicies start at 0 and go to size-, so that your
- *last* menu should be theMenus[3], not theMenus[4].
-
-
-
-
-