home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!sgigate!sgiblab!cs.uoregon.edu!sisters.cs.uoregon.edu!jnewman
- From: jnewman@sisters.cs.uoregon.edu (Jonathan Grady Newman)
- Newsgroups: comp.sys.mac.programmer
- Subject: Lack of color solved, but why?
- Summary: Var declaration caused lack of colors in Menu
- Keywords: color, memory
- Message-ID: <1993Jan22.034114.4307@cs.uoregon.edu>
- Date: 22 Jan 93 03:41:14 GMT
- Sender: news@cs.uoregon.edu (Netnews Owner)
- Organization: University of Oregon Computer and Information Sciences Dept.
- Lines: 24
-
- In an application I have been writing in Think C, I had a problem with all
- of the text in windows, menus and dialog boxes being missing. The cause
- of the problem seems to be the following declaration in my main:
-
- RGBColor screen[screenheight+1][screenwidth+1];
-
- Where screenheight and screenwidth are previously #define'd.
-
- The fix was to make the following declaration instead:
-
- RGBColor *screen;
-
- And make a call to NewPtr...
-
- My question is why does this happen? Is it a problem with TC?
- I am using objects in my app.
-
-
-
- --
- ========================================================
- Jonathan Newman "Lick cheese" - jnewman
- University Of Oregon
- Computer and Information Science
-