home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / oop / macapp3 / 211 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.6 KB  |  49 lines

  1. Newsgroups: comp.sys.mac.oop.macapp3
  2. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!apple!mumbo.apple.com!gallant.apple.com!wintermute.apple.com!user
  3. From: ksand@apple.com (Kent Sandvik )
  4. Subject: Re: Stack size in MacApp
  5. Sender: news@gallant.apple.com
  6. Message-ID: <ksand-151292162742@wintermute.apple.com>
  7. Date: Wed, 16 Dec 1992 00:31:09 GMT
  8. References: <724452986.7524418@AppleLink.Apple.COM>
  9. Organization: (Evil Eye Creature from Mars, Inc.)
  10. Followup-To: comp.sys.mac.oop.macapp3
  11. Lines: 36
  12.  
  13. In article <724452986.7524418@AppleLink.Apple.COM>,
  14. D6431@AppleLink.Apple.COM (OptImage Interactive Svcs,PRT) wrote:
  15. > I need a Large stack in my MacApp Application.  Is there any way I can increase
  16. > my stack size on application start up??
  17.  
  18. No problems, actually the stack is set to 24k by default. Look inside the
  19. MacApp library, in the Memory.r file, and you should find the 
  20. following resource:
  21.  
  22. resource 'mem!' (kBaseMacApp,
  23. #if qNames
  24.     "BaseMacApp",
  25. #endif
  26.     purgeable) {
  27.     6 * 1024,        // Add to temporary reserve
  28.     6 * 1024,        // Add to permanent reserve
  29.     24 * 1024        // Base stack size. MacApp sums this entry for all 'mem!'
  30. resources to
  31.                     // determine what it should set the stack limit to at
  32. application
  33.                     // startup.
  34. };
  35.  
  36. Copy that one to your .r file, modify the stack size to your liking
  37. and Rez.
  38.  
  39. I actually recommend exploring the library folder, like the Memory.r
  40. and the Defaults.r files. You could take stuff/resources, and modify them
  41. to
  42. your liking.
  43.  
  44.  
  45. Kent
  46. -------------------
  47. Kent Sandvik (UUCP: ....!apple!ksand; INTERNET: ksand@apple.com)
  48. DISCLAIMER: Private activities on the Net.
  49.