Message-ID: <3DB57E77.57D69156@cityweb.de> Date: Tue, 22 Oct 2002 18:36:07 +0200 From: Marcus Koch X-Mailer: Mozilla 4.03 [de] (Win95; I) MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: memmory-problems with djgpp and cwsdpmi Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 #include 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