home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!mips!sdd.hp.com!usc!venice!gumby.dsd.trw.com!deneva!buckeye
- From: buckeye@spf.trw.com (John Wallace)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Help! System error #28
- Message-ID: <2A897AAF.6E5F@deneva.sdd.trw.com>
- Date: 12 Aug 92 20:55:11 GMT
- References: <chuck-120892123052@choffman.gte.com>
- Sender: news@deneva.sdd.trw.com
- Organization: TRW Data Systems Center, Redondo Beach, CA
- Lines: 30
-
- In article <chuck-120892123052@choffman.gte.com> chuck@gte.com (Chuck Hoffman) writes:
- >I'm getting System Error #28 message from MacsBug when checking a program I
- >wrote in THINK C. It happens during an FSRead. THINK C Debugger and
- >MacsBug can't recover so I have to reboot, which probably isn't the best
- >way for me to present the application to my end users.
- >
- >SystemErrors DA says "stack has moved into application heap." Is this
- >simply a memory management problem, or is it really something else
- >masquerading as a memory problem with a bogus return? Any ideas about
- >cause and / or cure?
- >
- >P.S. The file is open, and an immediately preceeding SetFPos seems to work
- >fine, giving a noErr return.
- >
- >
- >-Chuck Hoffman
-
- Your application apparently needs more stack space to perform its
- normal operations (or perhaps has an initite recursion problem).
- Insufficient stack space happens frequenly on Plus/SE/Classic Macs since
- they have only 8K of stack space; MacIIs typically have 24K of stack space.
- See the DefltStack low-memory LongInt global at $322 or call StackSpace()
- to check how much stack space your app has. If you need more stack
- space for your app, you should call SetApplLimit when your app starts up
- so that your app has a big enough stack.
-
- Cheers!
- John
- -----
- John Wallace buckeye@spf.trw.com
-