|
-
April 11th, 1999, 04:47 AM
#1
Allocating RAM
I am a beginner with programming win32 systems, and I have a question that may (or may not) be very easy:
How can I allocate memory that I can be sure is in RAM all of the time (that is, I do not just want virtual memory that can be swapped out, I need it to be in RAM all of the time). I need this as a buffer in a measurement system, where I will loose data if the buffer is not available in RAM all of the time.
If possible, I would like to know how it can be done also generally in win32 C or C++, not just in Visual C++.
Thank you
/Staffan
-
April 12th, 1999, 05:03 AM
#2
Re: Allocating RAM
On NT you can use the Win32 routine VirtualLock.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|