delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/15/17:04:27

Newsgroups: comp.os.msdos.djgpp
From: kajiyama AT grad DOT sccs DOT chukyo-u DOT ac DOT jp (Tamito Kajiyama)
Subject: how to allocate the DOS conventional memory
Message-ID: <1997Mar14.141806.2818@chkygw.sccs.chukyo-u.ac.jp>
Sender: news AT chkygw DOT sccs DOT chukyo-u DOT ac DOT jp
Nntp-Posting-Host: 150.42.18.44
Organization: School of Computer and Cognitive Sciences, Chukyo Univ., Japan
Date: Fri, 14 Mar 1997 14:18:06 GMT
Lines: 29
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi there,

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().  I tried to write
the wrapper module the same way, but when my application of the wrapper
module did the memory allocation and terminated, my computer showed the
memory allocation error message (in Japanese :-), tried to reload
COMMAND.COM, failed to do it, and then hung up.  If the application
program does not do the memory allocation, the program normally
terminates.

I cannot figure out the cause of the memory allocation error.  I wonder
if I miss fundamental knowledge of the way of allocating/freeing the
conventional memory in DJGPP in the VCPI environment.

Any comments and suggestions are very welcome.

-- 
Kajiyama Tamito (e-mail: kajiyama AT grad DOT sccs DOT chukyo-u DOT ac DOT jp)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019