Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!sdd.hp.com!ucsd!nosc!crash!pro-sol.cts.com!jholt From: jholt@pro-sol.cts.com (joe holt) Newsgroups: comp.sys.mac.programmer Subject: Re: global data in Think C Message-ID: <2568@crash.cts.com> Date: 7 May 90 16:56:11 GMT Sender: root@crash.cts.com Lines: 13 In-Reply-To: message from ted@cs.utexas.edu 47K of global space?? Irregardless of where Think C is putting the strings, *you're* obviously doing something wrong... :-( Older versions of Think C did put the strings in a separate STR resource. This required some run-time address patching to the code, so they made this an option in 4.0 and defaulted to OFF. If you check the "separate STRs" box in the "Set Project Type" dialog, you'll have you're non-global strings. I would invest some time in reading about Memory Management. You should never declare big arrays as static--they should always be dynamically allocated, either with malloc(), or for Mac purists NewPtr() or NewHandle().