home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15040 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.5 KB

  1. 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
  2. From: ksand@apple.com (Kent Sandvik)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: How to increase stack size ???
  5. Message-ID: <ksand-050992135624@wintermute.apple.com>
  6. Date: 5 Sep 92 21:03:26 GMT
  7. References: <1992Sep1.145611.1@uwovax.uwo.ca> <1992Sep2.154822.12924@novell.com> <71922@apple.Apple.COM> <marshall-020992143552@hpsdr160.sdd.hp.com>
  8. Sender: news@gallant.apple.com
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: Apple
  11. Lines: 22
  12.  
  13. In article <marshall-020992143552@hpsdr160.sdd.hp.com>, marshall@sdd.hp.com
  14. (Marshall Clow) wrote:
  15. > In article <71922@apple.Apple.COM>, grobbins@Apple.COM (Grobbins) wrote:
  16. > > [ lots of good advice deleted ]
  17. > > 
  18. > > This is particularly an issue for faceless background apps, which have
  19. > > a default stack size of only 2K.  SetApplLimit will grow an FBA's stack
  20. > > to at least 24K on Color QuickDraw machines, so the partition size
  21. > > should be larger than that.
  22. > > 
  23. > In writing a FBA we tracked down several cases where inits (oops,
  24. > extensions) would patch a trap, and then when the trap was called, would
  25. > casually throw a few Str255s on the stack, or maybe a 1K buffer.
  26. > Needless to say, when an OS call used over 1K of stack space and you only
  27. > have a 2K stack, you are headed for problems.
  28.  
  29. Another hint, check out what MoveHHi is doing with the stack. I'm not 
  30. telling it :-).
  31.  
  32. Kent Sandvik/DTS
  33.