Home > Software engineering >  Page error in the task manager
Page error in the task manager

Time:10-06

Just call the function of these three lines 591-593, the task manager there will be any number of page faults increment, will not because my application Settings multi-byte, multibyte wchar transforms and happen?

CodePudding user response:

Process the memory allocated is virtual memory, is not necessarily effective, that is not assigned to the actual physical memory

New 1 m memory allocation, such as process system could do only a virtual address, no actual mapped to physical memory
In use process, if you visit this section of memory, the system will generate a page fault, the system will map the physical memory to the virtual address

This process is normal, your code as long as no memory leak is ok

CodePudding user response:

reference 1st floor Yofoo response:
process memory allocated is virtual memory, is not necessarily effective, that is not assigned to the actual physical memory

New 1 m memory allocation, such as process system could do only a virtual address, no actual mapped to physical memory
In use process, if you visit this section of memory, the system will generate a page fault, the system will map the physical memory to the virtual address

This process is normal, your code as long as no memory leak nothing

Looking at that a lot of page faults, feel the program is going to collapse

CodePudding user response:

 "..//res/PNG/" 
Instead of
L ".. \ \ res \ \ PNG \ \ "



+ "_ disconnect. PNG"
Instead of
+ CStringW (L "_ disconnect. PNG")
  • Related