home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!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-010992171044@wintermute.apple.com>
- Date: 2 Sep 92 00:31:07 GMT
- References: <1992Sep1.145611.1@uwovax.uwo.ca>
- Sender: news@gallant.apple.com
- Followup-To: comp.sys.mac.programmer
- Organization: Apple
- Lines: 27
-
- In article <1992Sep1.145611.1@uwovax.uwo.ca>, tschneid@uwovax.uwo.ca wrote:
- >
- >
- > 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)
-
- MacII ROMs: 24k
- Old Macs (Plus, SEs): 8k
- Color QuickDraw systems: 24k
- MacApp applications (24k by default).
-
- >
- > THz newapplimit;
- >
- > newapplimit = 300*1024; /* give app 300k */
- > SetApplLimit(ApplLimit()+newapplimit);
- > MaxApplLimit();
- >
- > Unfortunately, this does not work ...
-
- In what way, collision of stack and heap (more memory required then)?
- Other problems?
-
- Kent Sandvik/DTS
-