Article View: comp.sys.mac.oop.macapp3
Article #158Re: Stack size in MacApp
From: Kent Sandvik
Date: Wed, 16 Dec 1992 00:31
Date: Wed, 16 Dec 1992 00:31
36 lines
1719 bytes
1719 bytes
In article <724452986.7524418@AppleLink.Apple.COM>,
D6431@AppleLink.Apple.COM (OptImage Interactive Svcs,PRT) wrote:
> I need a Large stack in my MacApp Application. Is there any way I can increase
> my stack size on application start up??
No problems, actually the stack is set to 24k by default. Look inside the
MacApp library, in the Memory.r file, and you should find the
following resource:
resource 'mem!' (kBaseMacApp,
#if qNames
"BaseMacApp",
#endif
purgeable) {
6 * 1024, // Add to temporary reserve
6 * 1024, // Add to permanent reserve
24 * 1024 // Base stack size. MacApp sums this entry for all 'mem!'
resources to
// determine what it should set the stack limit to at
application
// startup.
};
Copy that one to your .r file, modify the stack size to your liking
and Rez.
I actually recommend exploring the library folder, like the Memory.r
and the Defaults.r files. You could take stuff/resources, and modify them
to
your liking.
Kent
-------------------
Kent Sandvik (UUCP: ....!apple!ksand; INTERNET: ksand@apple.com)
DISCLAIMER: Private activities on the Net.
Technical Details
Message-ID:
<ksand-151292162742@wintermute.apple.com>Path:
arc1-ca.pugleaf.net!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!userReferences:
<724452986.7524418@AppleLink.Apple.COM>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.mac.oop.macapp3 Path: arc1-ca.pugleaf.net!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 From: ksand@apple.com (Kent Sandvik ) Subject: Re: Stack size in MacApp Sender: news@gallant.apple.com Message-ID: <ksand-151292162742@wintermute.apple.com> Date: Wed, 16 Dec 1992 00:31:09 GMT References: <724452986.7524418@AppleLink.Apple.COM> Organization: (Evil Eye Creature from Mars, Inc.) Followup-To: comp.sys.mac.oop.macapp3 Lines: 36