Article View: alt.msdos.programmer
Article #578Re: Stack Overflow in Turbo C
From: George Jetson
Date: Tue, 06 Oct 1992 17:00
Date: Tue, 06 Oct 1992 17:00
29 lines
1939 bytes
1939 bytes
In article <JT.92Oct6152841@fizyk1.fuw.edu.pl> jt@fuw.edu.pl (Jerzy Tarasiuk) writes: >>>>>> On 4 Oct 92 12:12:17 CDT, haydedr@wkuvx1.bitnet said: >h> 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? >h> Well, you could increase your stack size. To do this in Turbo C++ >... >h> extern unsigned _stklen = 543210U; ^^^^^^^ > >Note unsigned has range from 0 to 0xFFFF(=65535U), don't try use >bigger values because compiler will truncate high-order bits. Over in AFU, they blame this sort of thing on its being September again... I think 543210 is obviously a placeholder - it is not to be taken seriously. It would have been clearer, I suppose to have written: 123456789U ************************************************************************ A note to new readers: the weasely :-) symbol is frowned upon in this group. Any questions, see Phil Gustafson who will gladly rearrange your diodes for you. - From the AFU FAQ - - pynq@quads.uchicago.edu, who is still costing the net hundreds, if not thousands, of dollars, every time he posts - ************************************************************************
Technical Details
Message-ID:
<1992Oct6.170024.20243@midway.uchicago.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!quads!pynqReferences:
<WAYNE.92Oct4013500@dew.cs.odu.edu> <1992Oct4.121217.2903@wkuvx1.bitnet> <JT.92Oct6152841@fizyk1.fuw.edu.pl>Show Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!quads!pynq From: pynq@quads.uchicago.edu (George Jetson) Subject: Re: Stack Overflow in Turbo C Message-ID: <1992Oct6.170024.20243@midway.uchicago.edu> Sender: news@uchinews.uchicago.edu (News System) Reply-To: pynq@midway.uchicago.edu Organization: D. J. Dougherty & Associates References: <WAYNE.92Oct4013500@dew.cs.odu.edu> <1992Oct4.121217.2903@wkuvx1.bitnet> <JT.92Oct6152841@fizyk1.fuw.edu.pl> Date: Tue, 6 Oct 1992 17:00:24 GMT Lines: 29