[comp.os.msdos.programmer] DOS functions >64K?

vhs@britesun.radig.de (Volker Herminghaus-Shirai) (02/27/91)

Could anyone point me out how to malloc() or fread() blocks
larger than 64KB? We are doing picture processing on >80MB
pictures here, and it is extremely painful not to be able
to read large chunks of the picture into memory. I could not
find any documentation on this subject in TC++- nor DOS books,
so I tried but all I get when malloc()ing or fread()ing large
blocks is errors. Anyone out there to know something
definite on this subject?

Thanks,

		Volker

Rick_Vandenberg@mindlink.UUCP (Rick Vandenberg) (03/04/91)

> vhs@britesun.radig.de writes:
> 
> 
> Could anyone point me out how to malloc() or fread() blocks
> larger than 64KB? We are doing picture processing on >80MB
> pictures here, and it is extremely painful not to be able
> to read large chunks of the picture into memory. I could not
> find any documentation on this subject in TC++- nor DOS books,
> so I tried but all I get when malloc()ing or fread()ing large
> blocks is errors. Anyone out there to know something
> definite on this subject?
> 


Try using the HUGE model, or look up halloc(). I haven't tried this, but as far
as I know, it should work.

Rick.
--
Rick Vandenberg                Rick_Vandenberg@Mindlink.UUCP
Vandenberg Systems Research    uunet!van-bc!rsoft!mindlink!Rick_Vandenberg