Mail Archives: djgpp/1995/02/15/10:53:21
>
> 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.
- Raw text -