From: kunst AT prl DOT philips DOT nl 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 16:28:50 +0100 (MET) Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP users list) > > I have a heavily recursive pixel grouping algorithm > which I have *successfully* > implemented using DJGPP. THe code runs fine under plain old DOS, but when > I run it on any images > ~50*50 in a DOS box under WFW3.11, the code falls > over complaining of a stack fault. A symify on the accompanying stack dump > reveals that the stack is fairly(!) large. > > 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). > > Any thoughts?, I am running a 486DX2-66 with WFW 3.11 and MS-DOS 6.22. > Did you allocate a sufficiently large *permanent* swap file in Windoze ? Lets say, 40 MB ? I have some recursive routines as well, but they seem to run fine on my 16MB phys + 40MB swap Windows DOS box. Did you also specify in the Windows dosprmpt.pif (use PIF editor) Mem req. KB desired = -1 EMS KB Limit = -1 <<============ XMS KB Limit = -1 <<============ Otherwise you won't get your extended memory at all from Windoze. Pieter Kunst.