Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: Mike Fulton Newsgroups: scea.yaroze.problems.pc Subject: Re: To programs w/errors Date: Fri, 25 Apr 1997 11:08:01 -0700 Organization: SCEA Net Yaroze News Lines: 29 Message-ID: <3360F301.5D9@glamoursoft.com> References: <335FC7A4.B38@groupz.net> Reply-To: mfulton@glamoursoft.com NNTP-Posting-Host: 206.41.6.40 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0Gold (Win95; I) Jeff Lawton wrote: > I can't seem to compile the Dungeon, Tunnel, and the Clone demos to > run.. Everytime I try I get the following error: > ... > Stack fault at eip=d5d17 It may be that the compiler is running out of stack space. Try adding the following to your AUTOEXEC.BAT file: set GO32=DPMIStack 500000 That will increase the compiler's stack size from the default (256kb I think) to 1mb, which is enough in virtually all situations. By the way, you should also be aware that while setting the DPMI stack size will fix the problem, the reason the problem occurs in the first place is because of source code that is unusually complex, such as a routine that is many, many pages long, or perhaps there are some very large switch statement blocks. I know you didn't write the the code you were referring to, but when writing your own code, you should keep this information in mind. You may wish to periodically take a look at your source code and see if it can be simplified. Not only will this make life easier for the compiler, but the code will probably run better because of register allocation and other optimization improvements. Mike Fulton @ SCEA