Cannot allocate a 64kB buffer in C in DosBox

September 16, 2018 at 02:15:18
Specs: Windows 7
While decades back I was able to simply malloc a 64kB buffer for double buffering in VGA, now trying the same in DosBox return a "Not enough memory" error. I am using Borland C++ 3.1 like in the old days, tried even huge memory model and have written my own memory allocation function in desperation, so now I know the larges free block is 3860 paragraphs (61760 bytes). DosBox itself reports over 630kB of free conventional memory so I cannot figure out why there is not enough space for one (or even more) 64000 byte pieces. Its quite frustrating, has anyone encountere this?

See More: Cannot allocate a 64kB buffer in C in DosBox

Reply ↓  Report •
Related Solutions


Ask Question