home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 13898 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  1.7 KB

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