www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/02/17:13:06

Xref: news2.mv.net comp.os.msdos.djgpp:3353
From: gaghon AT nevada DOT edu (GEORGE GAGHON)
Newsgroups: comp.os.msdos.djgpp
Subject: DJGPP and malloc()
Date: 1 May 1996 22:57:01 GMT
Organization: University of Nevada System Computing Services
Lines: 26
Message-ID: <4m8q7t$jgf@news.nevada.edu>
NNTP-Posting-Host: pioneer.nevada.edu
NNTP-Posting-User: unauthenticated_user
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ok I have a question.  I have a 486dx 50, with 8megs of RAM and two 
CONFIG.SYS setups, running DOS 5. Nither setup uses EMS memory.

The first setup has no HIMEM.

When I run go32-v2, I get 7096K free.  When I run my C program that uses 
Malloc() to allocate 1.6megs, everything works fine.


The second setup has HIMEM in the config.

When I run go32-v2, I get 590k free.  When I run my C program that uses 
Malloc() to allocate 1.6megs, it works, but I get lots and lots of disk 
swapping.  


My question is, there is about 6.5 megs of unused XMS memory in the 
second setup.  How do I get DJGPP to Recognize that memory?  When I 
release this program, I don't want people to have to turn off HIMEM just 
to run this program, and it does not seem right to have 6.5 megs of 
available memory unused and have the program continually swap to disk.


Thanks,

Vince

- Raw text -


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