Click here to Skip to main content
15,910,212 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows Driver Development Pin
.::RockNix::.6-Mar-01 21:35
.::RockNix::.6-Mar-01 21:35 
GeneralRe: Windows Driver Development Pin
MickAB6-Mar-01 23:42
MickAB6-Mar-01 23:42 
GeneralRe: Windows Driver Development Pin
Joe Moldovan5-Mar-01 7:10
Joe Moldovan5-Mar-01 7:10 
GeneralRe: Windows Driver Development Pin
MickAB5-Mar-01 3:12
MickAB5-Mar-01 3:12 
GeneralHelp needed with PropertySheet Pin
4-Mar-01 23:36
suss4-Mar-01 23:36 
GeneralSetProcessWorkingSetSize and Memory Locking Pin
4-Mar-01 20:07
suss4-Mar-01 20:07 
GeneralRe: SetProcessWorkingSetSize and Memory Locking Pin
4-Mar-01 22:56
suss4-Mar-01 22:56 
GeneralRe: SetProcessWorkingSetSize and Memory Locking Pin
5-Mar-01 1:49
suss5-Mar-01 1:49 
Thanks for the reply!

I'm sorry for not setting up the problem correctly, this is how I'm using the working set/VirtualAllock,Lock (probrably wrong):

* SetProcessWorkingSetSize(48Mb,64Mb)
* VirtualAlloc(32Mb,MEM_COMMIT,PAGE_READWRITE|PAGE_NOCACHE)
* VirtualLock -- I Can se it loading all pages into memory (due to Page Fault count)

* Iterate through all the pages

* Running some other process which it wery memory inensive

* Iterate through all the pages

I'm still getting some (not many) page faults (i cannt tell if they are soft or "hard" since I don't have the tool (might be I'm stupid anyway).

When looking in Process Viewer I can see that the ProcessWorkingSetSize is less than requesten/GetProcessWorkingSetSize tells me?

If I'm removing the SetProc... windows will increase the WorkingSetSize form me...

What Am I doing wrong?

Regards
Mario Toffia

GeneralGlobal variable ... Pin
Hadi Rezaee4-Mar-01 18:15
Hadi Rezaee4-Mar-01 18:15 
GeneralWriting VC++ dll to work with Delphi 5? Help Please!! Pin
4-Mar-01 16:16
suss4-Mar-01 16:16 
GeneralRe: Writing VC++ dll to work with Delphi 5? Help Please!! Pin
l a u r e n4-Mar-01 20:40
l a u r e n4-Mar-01 20:40 
GeneralRe: Writing VC++ dll to work with Delphi 5? Help Please!! Pin
4-Mar-01 22:16
suss4-Mar-01 22:16 
GeneralRe: Writing VC++ dll to work with Delphi 5? Help Please!! Pin
4-Mar-01 22:17
suss4-Mar-01 22:17 
QuestionHOW to use ADO with VC++, please help! Pin
4-Mar-01 11:52
suss4-Mar-01 11:52 
AnswerRe: Try this site.... Pin
Brendan Tregear4-Mar-01 14:30
Brendan Tregear4-Mar-01 14:30 
GeneralRe: Try this site.... Pin
Joe Moldovan5-Mar-01 5:58
Joe Moldovan5-Mar-01 5:58 
GeneralATL, subclassed ListBox Pin
4-Mar-01 6:47
suss4-Mar-01 6:47 
GeneralRe: ATL, subclassed ListBox Pin
Brad Bruce4-Mar-01 9:38
Brad Bruce4-Mar-01 9:38 
GeneralRe: ATL, subclassed ListBox Pin
5-Mar-01 20:44
suss5-Mar-01 20:44 
Generalthis pointer ... Pin
Hadi Rezaee4-Mar-01 5:21
Hadi Rezaee4-Mar-01 5:21 
GeneralRe: this pointer ... Pin
l a u r e n4-Mar-01 6:19
l a u r e n4-Mar-01 6:19 
GeneralRe: this pointer ... Pin
Hadi Rezaee4-Mar-01 18:20
Hadi Rezaee4-Mar-01 18:20 
GeneralRe: this pointer ... Pin
l a u r e n4-Mar-01 20:17
l a u r e n4-Mar-01 20:17 
GeneralRe: this pointer ... Pin
markkuk4-Mar-01 22:24
markkuk4-Mar-01 22:24 
GeneralRe: this pointer ... Pin
Erik Funkenbusch5-Mar-01 9:25
Erik Funkenbusch5-Mar-01 9:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.