delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/10/22/12:45:25

Message-ID: <3DB57E77.57D69156@cityweb.de>
Date: Tue, 22 Oct 2002 18:36:07 +0200
From: Marcus Koch <mw DOT koch AT cityweb DOT de>
X-Mailer: Mozilla 4.03 [de] (Win95; I)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: memmory-problems with djgpp and cwsdpmi
Lines: 46
Organization: Cityweb News Service
NNTP-Posting-Host: 1Cust99.tnt7.laf1.deu.da.uu.net
X-Trace: 1035304688 news.cityweb.de 229 149.225.48.99
X-Complaints-To: abuse AT cityweb DOT de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Ave readers,

I have the following probelms working with djgpp and cwsdpmi:

If i compile and run the following program

   #include<iostream.h>
   #include<dpmi.h>

   int main()
   {
      unsigned long           size;
      char                    *pointer;

      size = _go32_dpmi_remaining_physical_memory();
      cout << "\n" << (unsigned long) size;

      pointer = (char *) malloc(1000000);
      if(pointer == NULL) cout << "ERROR";

      size = _go32_dpmi_remaining_physical_memory();
      cout << "\n" << (unsigned long) size;
   }

i get the following output:

   i:\prg\mwkdb\t2

   63602688
   63594496

1.) As you see it only consumes 8192 bytes of memmory but i requested
1000000.
 WHY WHY WHY ????
Furthermore as i tried out djgpp a few month ago i had to load cwsdpmi
in
oder to compile or run programs. But now programs run and compile
without
loading cwsdpmi !!

Thank you in advance.

cu,
 Marcus


- Raw text -


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