home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14901 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.3 KB

  1. Path: sparky!uunet!sun-barr!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-010992171044@wintermute.apple.com>
  6. Date: 2 Sep 92 00:31:07 GMT
  7. References: <1992Sep1.145611.1@uwovax.uwo.ca>
  8. Sender: news@gallant.apple.com
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: Apple
  11. Lines: 27
  12.  
  13. In article <1992Sep1.145611.1@uwovax.uwo.ca>, tschneid@uwovax.uwo.ca wrote:
  14. > I am working on a port of Gunplot 3.2 to the Mac. So far I have most
  15. > of the basics working (only a few bugs left) ... however, I keep
  16. > running out of stack space. I did some reading and found out that the
  17. > Mac only provides 8k of stack space and that it can be changed by doing
  18. > something like (in VERY rough C pseudo-code)
  19.  
  20. MacII ROMs: 24k
  21. Old Macs (Plus, SEs): 8k
  22. Color QuickDraw systems: 24k
  23. MacApp applications (24k by default).
  24.  
  25. >         THz newapplimit;
  26. >         newapplimit = 300*1024;    /* give app 300k */
  27. >         SetApplLimit(ApplLimit()+newapplimit);
  28. >         MaxApplLimit();
  29. > Unfortunately, this does not work ...
  30.  
  31. In what way, collision of stack and heap (more memory required then)?
  32. Other problems?
  33.  
  34. Kent Sandvik/DTS
  35.