delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/18/19:16:40

From: "Rafał Maj" <r_maj AT poczta DOT onet DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: RE: RE : get free memory info doesn't work !
Date: Sat, 19 Aug 2000 00:57:38 +0200
Organization: Academic Computer Center CYFRONET AGH
Lines: 26
Message-ID: <8nkfqq$hhj$1@info.cyf-kr.edu.pl>
References: <8njgsi$5ps$1 AT info DOT cyf-kr DOT edu DOT pl> <4634-Fri18Aug2000203600+0300-eliz AT is DOT elta DOT co DOT il>
NNTP-Posting-Host: d-94-53-21.cyfronet.krakow.pl
X-Trace: info.cyf-kr.edu.pl 966640282 17971 149.156.1.181 (18 Aug 2000 23:11:22 GMT)
X-Complaints-To: news AT cyf-kr DOT edu DOT pl
NNTP-Posting-Date: 18 Aug 2000 23:11:22 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote :
> > ---------------- contents of stderr -
> >     59136        40136        59136
> >     48832        40136        48832    <=== It's OK
> >     48832        40136        48832
> >     48832        40136        48832    <==== Why delete[] dosn't change
> > information about free memory ?
> Because delete[] doesn't return memory to the system, it puts it on
> the program's internal pool of free memory.
> See section 15.2 of the DJGPP FAQ list for details, it's all there.

OK, finaly I read it :)
But... still I don't know how to check this amount of free memory.
I used sbrk(),  _go32_dpmi_get_free_memory_information(...),
_go32_remaining_virtual_memory(), value returning by malloc - all things
described in DJGPP FAQ,
and *NONE* of them worked,
excaly - all of them returned the sam value before and after delete[]...

So, finaly I think, that ther isn't ANY method for checking REAL ammount of
free virtual / physical memory under DJGPP ?
:-(  Rafal



- Raw text -


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