Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!rice!uw-beaver!zephyr.ens.tek.com!tektronix!reed!lclark!dan From: dan@lclark.UUCP (Dan Revel) Newsgroups: comp.sys.mac.programmer Subject: stack overflow error Message-ID: <802@lclark.UUCP> Date: 23 Nov 89 01:20:00 GMT Reply-To: dan@lclark.UUCP (Dan Revel) Organization: Lewis & Clark College, Portland OR Lines: 22 References: I have been getting SysError #28 ('dsStkNHeap') stack overflow errors from my Think C 4.0 program when I run it on either a 1 meg SE or a Mac Plus, my 5 meg IIx development system runs things just fine. I went and cleaned up a couple of large variable that were being allocated on the stack and that seems to have helped. I thought it would be nice to know how to change the stack size, any pointers? :-) I tried using GetApplLimit and SetApplLimit just after calling MaxApplZone at the beginning of my program, I adjusted the limit downwards thinking that that would shrink the heap size and thereby allow a bigger stack. all I got for my efforts was a bomb! While I'm here, is the reason that the errors don't show up on the IIx just that the stack-sniffer doesn't catch them, or is there some other possibility? Thanx, and have a happy Thanksgiving! Dan -- dan@lclark tektronix!reed!lclark!dan Dylsexics untie! (-|