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

  1. Path: sparky!uunet!pmafire!news.dell.com!swrinde!cs.utexas.edu!torn!newshost.uwo.ca!uwovax.uwo.ca!tschneid
  2. From: tschneid@uwovax.uwo.ca
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: How to increase stack size ???
  5. Message-ID: <1992Sep1.145611.1@uwovax.uwo.ca>
  6. Date: 1 Sep 92 18:56:11 GMT
  7. Sender: news@julian.uwo.ca (USENET News System)
  8. Organization: University of Western Ont, London
  9. Lines: 21
  10. Nntp-Posting-Host: hydra.uwo.ca
  11.  
  12.  
  13. I am working on a port of Gunplot 3.2 to the Mac. So far I have most
  14. of the basics working (only a few bugs left) ... however, I keep
  15. running out of stack space. I did some reading and found out that the
  16. Mac only provides 8k of stack space and that it can be changed by doing
  17. something like (in VERY rough C pseudo-code)
  18.  
  19.         THz newapplimit;
  20.  
  21.         newapplimit = 300*1024;    /* give app 300k */
  22.         SetApplLimit(ApplLimit()+newapplimit);
  23.         MaxApplLimit();
  24.  
  25. Unfortunately, this does not work ...
  26.  
  27. Can anyone enlighten me? I would like to set up a fixed stack size of
  28. 32k (i.e. not dependent on the memory allotted by the user in the 
  29. applications info box). I am using Think C 5.02.
  30.  
  31. Thanks,
  32. Todd Schneider
  33.