home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / oop / macapp3 / 221 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.1 KB

  1. Path: sparky!uunet!stanford.edu!apple!applelink.apple.com
  2. From: H_HADDON@ACAD.FANDM.EDU
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: Re: Stack size in MacApp
  5. Message-ID: <01GSDNXMT60Y000JFE@ACAD.FANDM.EDU>
  6. Date: 16 Dec 92 14:49:00 GMT
  7. Sender: daemon@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 26
  10.  
  11. From: H_Haddon@ACAD.FANDM.EDU (Harry Haddon, F & M College)
  12. Content-Transfer-Encoding: 7BIT
  13. To: D6431@AppleLink.Apple.COM (OptImage Interactive Svcs, PRT)
  14. Cc: MACAPP3TECH$@AppleLink.Apple.COM
  15.  
  16. >I need a Large stack in my MacApp Application.  Is there any way I can incre
  17. ase
  18. >my stack size on application start up??
  19.  
  20. The correct way to add stack space is to add a 'mem!' resource to your
  21. application's resource file:
  22.  
  23. resource 'mem!' (1000,
  24. #if qNames
  25.         "Additional Memory Requirements",
  26. #endif
  27.         purgeable) {
  28.         0,                              // Add to temporary reserve
  29.         0,                              // Add to permanent reserve
  30.         0                               // Add to stack space
  31. };
  32.  
  33. Put the amount of additional space required in place of the last 0 above.
  34.  
  35. Harry
  36.  
  37.