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