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

  1. Path: sparky!uunet!usc!wupost!waikato.ac.nz!aukuni.ac.nz!russells
  2. Newsgroups: comp.sys.mac.programmer
  3. Subject: Re: death of a global variable...
  4. Message-ID: <1992Aug14.005736.1923@ccu1.aukuni.ac.nz>
  5. From: russells@ccu1.aukuni.ac.nz (Russell Street)
  6. Date: Fri, 14 Aug 1992 00:57:36 GMT
  7. References: <1992Aug13.191303.17858@microsoft.com>
  8. Organization: University of Auckland, New Zealand.
  9. Keywords: programming help, weird bug?
  10. Lines: 17
  11.  
  12. peterbak@microsoft.com (Peter Bako) writes (well sort of):
  13.  
  14. > ... why do things get trashed ....
  15. ...
  16. >MenuHandle    theMenus[NumOfMenus];
  17. >DrawRec        theImage;
  18. ...
  19. >During the setup look the MenuHandle array gets filled in with 4 handles
  20. ...
  21. >Now here is the catch!  By watching the value of theMenus[4] (my last menu)
  22.                             ^^^^^
  23. Remember in C arrays indicies start at 0 and go to size-, so that your
  24. *last* menu should be theMenus[3], not theMenus[4].
  25.  
  26.  
  27.  
  28.  
  29.