Solved

Memory Checker (Megs)

Posted on 1997-11-16
3
292 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

This article outlines the process to identify and resolve account lockout in an Active Directory environment.
In this increasingly digital world, security hacks are no longer just a threat, but a reality. As we've witnessed with Target's big identity hack 2013, Heartbleed in 2015, and now Cloudbleed, companies and their leaders need to prepare for the unthi…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

832 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