850031m@aucs.UUCP (GORDON R. MAC GREGOR) (04/11/89)
Opps... yes this was yet another posting of a stack overflow problem (thanks Gary). Sorry, do I feel silly. But, whats eating up all my stack? My funtions only nest about 4 levels deep maximum. I SDB'ed it, and at 2 levels below main (a funtion in a funtion called by main()) I do an AllocMem(). Here SDB tells me Im out of stack (I guess) by not stepping that instruction. It refuses to step after that (but there are no messages). So what else could be on the stack besides function calls? My code hardly looks stack intensive. I really want to be able to run this on the default stack. / \/ ross
ddave@pnet02.cts.com (David Donley) (04/12/89)
All local varibles are on the stack. This func would be VERY stack intensive:
CrashMe(win,scr,rp,vp)
struct Window win;
struct Screen scr;
struct RastPort rp;
struct ViewPort vp;
{
char memory[32423];
}
(Gee, I wonder how much stack would be needed to run this anyway? :-)
Call the Bug Eyes BBS at (213) 372-4494
ddave@pnet02.CTS.COM killer!gryphon!pnet02!ddave