🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.mac.oop.macapp3
2 messages
2 total messages Started by OptImage Interactive Svcs,PRT Tue, 15 Dec 1992 20:50
Stack size in MacApp
#150
Author: OptImage Interactive Svcs,PRT
Date: Tue, 15 Dec 1992 20:50
9 lines
542 bytes
Help,
 
I need a Large stack in my MacApp Application.  Is there any way I can increase
my stack size on application start up??
 
Any Help would be appreciated
 
Jay Bartot @OptImage 
 
Re: Stack size in MacApp
#158
Author: Kent Sandvik
Date: Wed, 16 Dec 1992 00:31
36 lines
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads