Mail Archives: djgpp/1997/03/16/08:48:00
On Fri, 14 Mar 1997, Tamito Kajiyama wrote:
> I've used DJGPP version 1.12 in the VCPI environment (yes, I know the
> compiler is old, but my computer is a NEC PC-9801, not an AT compatible,
> so I cannot use the newest compiler due to the architectural
> differences). I'm now writing a Python wrapper module of a graphic
> library, and I need to allocate/free the DOS conventional memory.
>
> Question: How do I allocate/free the conventional memory in DJGPP 1.12
> in the VCPI environment?
>
> I have a program that someone wrote, and the program allocates the
> conventional memories by calling _go32_dpmi_allocate_dos_memory() and
> frees them with invoking _go32_dpmi_free_dos_memory().
Why do you need this at all? Just use these two library functions
`_go32_dpmi_allocate_dos_memory' and `_go32_dpmi_free_dos_memory'.
The memory they allocate is coming from conventional memory (where
else could DOS memory come from?).
- Raw text -