TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CAMERON CLARK
from: HERBERT BUSHONG
date: 1997-06-11 05:06:00
subject: free memory?

::> HB> coreleft();  /* returns # of bytes left */
::> HB> _memavl() is also defined to coreleft() if not compiling for windows.
::>     I found some documentation for coreleft in the DOS-only section of my
::>     help files, but I've not found _memavl() anywhere. What is used for
::>     win & win32 targets for free memory (assuming that win32 doesn't use
::>     virtual memory only).
I'm probably missing something, but I really don't know (with Borland) how to 
do it apart from a method I've seen which keeps allocating chunks of memory
until no more can be allocated, then free's the memory and returns the amount 
it was able to allocate. Not elegant, and not realistic in Windows 
where it would keep allocating memory (and growing the swapfile) until you 
ran 
out of disk space....
#  Herbert Bushong    harchon@centuryinter.net       [TEAM OS/2]    
-  Blackbeard's BBS   Intelec: 239:600/0            
+  Fido: 1:19/19      http://www.win.net/eunicecity/stltcc/hbush/
---
   RM 1.31 2508   Be nice to your kids. They will choose your nursing home.
---------------
* Origin: Blackbeard's BBS - Ville Platte, LA - 318-468-3385 (1:19/19)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.