Mail Archives: djgpp/1997/03/17/07:38:42
Ian D Romanick wrote:
>
> > I suspect the problem is from the malloc() implementation. I think it
> > allocates blocks in fixed sizes that keep on doubling. So when asking for
> > the 17M chunk, it's trying to get a 30 or 31 meg chunk, which is being
> > refused by DPMI since Windows only wants to give the program 32 megs.
>
> Not exactly. The malloc() routine that comes with DJGPP always rounds an
> allocation size UP to the NEXT power of two. From 17, this just happens
> to be 32.
>
> --
> "But art is the process of evoking pity and terror. Art. Masturbation.
> What modern artists do is pseudo-intellectual Whatever.
> masturbation." http://www.cs.pdx.edu/~idr
> -- Stranger In A Strange Land
I noticed that in the dflat implementation that can be downloaded from
the v2 release, that there was what appeared as a superfluous malloc
routine. It did not compile correctly and when I removed it I was able
to create dflat with no problem. Does anyone know if the above
mentioned
problem is the reason that an additional malloc was included with the
dflat window library, and if not, why in the world include another
malloc that does not compile when djgpp has one that does?
Thanks.
-- David T. McKee:
- Raw text -