home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!elroy.jpl.nasa.gov!ames!data.nas.nasa.gov!taligent!apple!mumbo.apple.com!gallant.apple.com!wintermute.apple.com!user
- From: ksand@apple.com (Kent Sandvik)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: How to increase stack size ???
- Message-ID: <ksand-050992135624@wintermute.apple.com>
- Date: 5 Sep 92 21:03:26 GMT
- References: <1992Sep1.145611.1@uwovax.uwo.ca> <1992Sep2.154822.12924@novell.com> <71922@apple.Apple.COM> <marshall-020992143552@hpsdr160.sdd.hp.com>
- Sender: news@gallant.apple.com
- Followup-To: comp.sys.mac.programmer
- Organization: Apple
- Lines: 22
-
- In article <marshall-020992143552@hpsdr160.sdd.hp.com>, marshall@sdd.hp.com
- (Marshall Clow) wrote:
- > In article <71922@apple.Apple.COM>, grobbins@Apple.COM (Grobbins) wrote:
- > > [ lots of good advice deleted ]
- > >
- > > This is particularly an issue for faceless background apps, which have
- > > a default stack size of only 2K. SetApplLimit will grow an FBA's stack
- > > to at least 24K on Color QuickDraw machines, so the partition size
- > > should be larger than that.
- > >
- >
- > In writing a FBA we tracked down several cases where inits (oops,
- > extensions) would patch a trap, and then when the trap was called, would
- > casually throw a few Str255s on the stack, or maybe a 1K buffer.
- >
- > Needless to say, when an OS call used over 1K of stack space and you only
- > have a 2K stack, you are headed for problems.
-
- Another hint, check out what MoveHHi is doing with the stack. I'm not
- telling it :-).
-
- Kent Sandvik/DTS
-