Hi there,

Whilst running in the DOS virtual machine in XP, I'm having trouble allocating any memory using function 48h and int 21h.

Firstly, when I use 0ffffh as the number of paragraphs required, it just seems to be returning an error instead of the free memory: error number 7 - 'Memory control blocks destroyed' though I don't know what this means.

Secondly, when I try and actually allocate some memory well within 640k it just throws an error and says that the isn't enough memory.

I have read that a .exe is given pretty much all the free memory when its loaded but I have no idea how to access this.

Can anyone help here?

S.
Posted on 2003-12-15 19:22:05 by Station
Station
Before use int21h Ah=48h it is necessary to free the wasted memory (int 21h AH=4Ah).
Or use the memory, located after the last segment of the program without using int21h Ah=48h.
Posted on 2003-12-15 22:43:12 by P2M