Can't allocate memory for DB or BMP (C++, Mode13h)

Technically, why would malloc return NULL? I'm trying to allocate memory for the double buffer (64000 bytes) and images (usually 50x80). malloc fails more times

than it succeeds, even with one small image and no DB.


  • Are you using DOS? If you're running a large program, it might already be taking up a lot of the near memory. Try farmalloc().

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!