Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3670
Number of posts: 9122

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
RAM consumption under windows Posted by Mark on 8 Apr 2001 at 4:44 AM
Hello,
I have written an application which needs a lot of RAM space (atleast 16MB) as there is a lot of I/0 and display features involved.
The program works fine in systems with 128MB of RAM but gives me a problem with lower memory systems.I used the norton utilities system doctor and found out that only 5 MB of Physical RAM is available when my system (32MB)starts.
Is there any way for me to clear the processes running by default on my system and put them temporarily on the swap file or maybe halt them until my program is running, the reason being that I can have more space for my program in the physical RAM.
Also please let me know some good resources for understandig the process and memory management under windows.
I use the core WIN32 API to program and if you could also tell me a few API's which will come to my help it will be great for me,
Thanks and regards
Mark

Report
Re: RAM consumption under windows Posted by Sunlight on 8 Apr 2001 at 2:34 PM
: Is there any way for me to clear the processes running by default on my system and put them temporarily on the swap file or maybe halt them until my program is running, the reason being that I can have more space for my program in the physical RAM.

No.

On Windows NT/2000, if you want to ask the system for fixed memory, look at the VirtualXxxx functions (VirtualAlloc, VirtualLock, etc.). This allows you to allocate memory and lock it into physical memory. I'm not aware of any way to do this under Windows 9x, though you may have some luck with the same method.
--
Sunlight


Report
Re: RAM consumption under windows Posted by Mark on 9 Apr 2001 at 7:09 PM
Thanks Sir,
I will try those functions and see if it is possible to get my work done. Is there some API which tells us the Process Id's of all the proceses running in the systsem,I jusy want to know the process Id of the proceses running on my system.
Please lemme know
Thanks and regards

Report
Re: RAM consumption under windows Posted by adrianxw on 11 Apr 2001 at 11:42 AM
: Thanks Sir,
: I will try those functions and see if it is possible to get my work done. Is there some API which tells us the Process Id's of all the proceses running in the systsem,I jusy want to know the process Id of the proceses running on my system.
: Please lemme know
: Thanks and regards
:

Look up the EnumProcesses() API function.


Med venlig hilsen,

Adrian...





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.