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