Article View: alt.msdos.programmer
Article #685Re: Stack Overflow in Turbo C
From: Jeff Kellam
Date: Mon, 05 Oct 1992 12:45
Date: Mon, 05 Oct 1992 12:45
20 lines
1101 bytes
1101 bytes
In article <WAYNE.92Oct4013500@dew.cs.odu.edu> wayne@dew.cs.odu.edu (C Wayne Huling) writes:
>I am using turbo C, and am having a stack overflow, my books tell me how to
>find the problem, but now how to solve the problem. Any suggestions?
>
>
> Wayne
There are three ways to eliminate a stack overflow problem.
1) Make more of the data static, either via the static keyword, or moving
it outside the scope of the function.
2) Reduce the number of recursions. If your program doesn't have recursions,
this probably won't help.
3) Increase the stack size. See Turbo's Library Reference (global variable
section) for more information.
Jeff Kellam
Technical Details
Message-ID:
<1apddsINNls9@eagle.natinst.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!natinst.com!natinst.com!not-for-mailReferences:
<WAYNE.92Oct4013500@dew.cs.odu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!natinst.com!natinst.com!not-for-mail From: banshee@natinst.com (Jeff Kellam) Newsgroups: alt.msdos.programmer Subject: Re: Stack Overflow in Turbo C Date: 5 Oct 1992 07:45:48 -0500 Organization: National Instruments, Austin, TX Lines: 20 Message-ID: <1apddsINNls9@eagle.natinst.com> References: <WAYNE.92Oct4013500@dew.cs.odu.edu> NNTP-Posting-Host: eagle.natinst.com