Solved

Memory Checker (Megs)

Posted on 1997-11-16
3
293 Views
Last Modified: 2010-04-16
I would like to create a function that will display
how much megs you have left.  
example of usage in function called megsLeft
writeln('You have ',megsLeft,'left.');
This variable is declared as real (#.##), and the variable
stays in the memory throughout the program for tests, such
as if megsLeftVar < 80 then Halt;
   else installProg;

I can make the checkings myself, but i need the info obtained from the function to stay in the computers memory.

Thanks!
0
Comment
Question by:weinrj
3 Comments
 

Accepted Solution

by:
mes earned 50 total points
ID: 1216793
Hello weinrj,

writeln('You have ', diskfree div (1024*1024), ' Mbytes left.');

Greetings,
MES

0
 
LVL 2

Expert Comment

by:omsec
ID: 1216794
if you wanna get the free space of a drive is mes's answer correct ! You also can get some other memory areas like
conventional memory, xms, or ems. get the OMSEC - unit from my
homepage at www.geocities.com/SiliconValley/Peaks/1620 

signed, Omsec
0
 

Author Comment

by:weinrj
ID: 1216795
Adjusted points to 50
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question