🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #697

Re: Stack Overflow in Turbo C

#697
From: Jerzy Tarasiuk
Date: Tue, 06 Oct 1992 14:28
12 lines
1145 bytes
>>>>> 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. 
Also note not every memory model allows 64kB stack.
Cheers, Jerzy
Technical Details
Message-ID: <JT.92Oct6152841@fizyk1.fuw.edu.pl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!fuw.edu.pl!cocos!jt
References: <WAYNE.92Oct4013500@dew.cs.odu.edu> <1992Oct4.121217.2903@wkuvx1.bitnet>

Show Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!fuw.edu.pl!cocos!jt
From: jt@fuw.edu.pl (Jerzy Tarasiuk)
Subject: Re: Stack Overflow in Turbo C
In-Reply-To: haydedr@wkuvx1.bitnet's message of 4 Oct 92 12:12:17 CDT
Message-ID: <JT.92Oct6152841@fizyk1.fuw.edu.pl>
Sender: news@fuw.edu.pl
Nntp-Posting-Host: fizyk1
Organization: Warsaw University Physics Dept.
References: <WAYNE.92Oct4013500@dew.cs.odu.edu> <1992Oct4.121217.2903@wkuvx1.bitnet>
Date: Tue, 6 Oct 1992 14:28:41 GMT
Lines: 12