From: ryot AT bigfoot DOT com (George Ryot) Newsgroups: comp.os.msdos.djgpp Subject: Re: Memory problem, (I think) Message-ID: <385ef2f6.4345071@news.clara.net> References: <199912170730 DOT JAA26530 AT www DOT Foo DOT COM> X-Newsreader: Forte Agent 1.5/32.452 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 22 Date: Sat, 18 Dec 1999 21:25:07 GMT NNTP-Posting-Host: 195.8.91.182 X-Complaints-To: abuse AT clara DOT net X-Trace: nnrp3.clara.net 945552307 195.8.91.182 (Sat, 18 Dec 1999 21:25:07 GMT) NNTP-Posting-Date: Sat, 18 Dec 1999 21:25:07 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "S. M. Halloran" wrote: > Btw, I added a "return (0);" statement to main so I could see that main() > returning normally (otherwise it returns anything in the test), or if you > use getch() whatever it returns ('27' if you hit ESC key). I then cut out > the 'unsigned _stklen = 1048576;' definition in the FAQ, inserted '* 8' > (multipy by 8) between the constant and semicolon, to account for your > particular use of stack space, ran it, and it returned zero for me, > without generating a fault or exception. Another way could be to declare the large array as static: #include int main() { static char thing[10000][400]; getch(); return 0; } -- george