www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/31/14:32:54

From: "Denis V.Sorokovik" <den AT krona DOT obninsk DOT ru>
Newsgroups: comp.os.msdos.djgpp
Subject: malloc & free
Date: Tue, 31 Mar 1998 23:15:53 +0400
Organization: MAXnet Systems
Lines: 10
Message-ID: <352140E9.D07CEE53@krona.obninsk.ru>
NNTP-Posting-Host: indigo.maxnet.ru
Mime-Version: 1.0
Cache-Post-Path: indigo.maxnet.ru!unknown AT 194 DOT 67 DOT 99 DOT 142
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Here is my problem. I write program, that works with memory arrays and
allocates arrays dynamically. I'm calling malloc(size), working with
array, then freeing (free(ptr)). dpmi function
__dpmi_get_free_memory_information says, that largest available free
block in bytes didn't increases in size, when I freed array, and
total_number_of_free_pages decreased too. I use DJGPP 2.01, cwsdpmi 4.
Can anybody helps me with this question?

Sorry for my bad English, I'm from Russia.

- Raw text -


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