Mail Archives: djgpp/1998/03/01/02:00:51
From: | "Radar" <p_radar AT hotmail DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Freeing memory
|
Date: | 27 Feb 1998 18:23:40 GMT
|
Organization: | Nextel
|
Lines: | 33
|
Message-ID: | <01bd43ac$ae0a7a00$LocalHost@server>
|
NNTP-Posting-Host: | 194.228.30.107
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I have a trouble with freeing memory. I use malloc to allocate memory and
free to return allocated space. But the problem is that after free it
doesn't raise Free physical memory. I watch
__dpmi_get_free_memory_information to get total number of free pages.
Could someone help me, how to free memory, because I quickly run out of
physical memory and the program swaps to disk. Thanks in advance for your
help,
Paul
This is what I get :
' Total number of free pages : 3568
data= (double *) malloc(100000*sizeof(double));
' Total number of free pages : 3567 ??
- Raw text -