From: Charles Sandmann Subject: Re: Stack Fault in a Dos Box To: B DOT S DOT Runnacles AT soton DOT ac DOT uk (B.S.Runnacles) Date: Wed, 15 Feb 1995 10:14:35 -0600 (CST) Cc: djgpp AT sun DOT soe DOT clarkson DOT edu > The code is neccessarily recursive and could have a stack as deep as the > number of pixels for some planes. I reported this problem earlier this year, > and DJ suggested increasing the minimum stack size using stubedit, I cranked > this up to 4Mb to no avail (I have 16Mb). There are 3 ways to set the DPMI stack size: 1) Running stubedit (suggest running it a second time to make sure it displays what you thought you entered as the default). 2) Use the _stklen global variable (used alone this wastes memory and causes some bugs with system/spawn). 3) Add the string "dpmistack 4096000" to the go32 environment variable. If you make it big enough and get the value properly entered, the stack fault problem should go away. Note, if you enter a value with stubedit which it doesn't like, it will set the stack value to 0 without telling you and you get the default of 256K, which is why I suggest running it a second time to view what you got. (For example, 40960000 will not work, but 4m will work).