In page error 0xc0000006

2019-08-03 21:50发布

问题:

I have a VS 2005 application using C++ . It basically importing a large XML of around 9 GB into the application . After running for more than 18 hrs it gave an exception 0xc0000006 In page error. THe virtual memory consumed is 2.6 GB (I have set the 3GB) flag.

Does any one have a clue as to what caused this error and what could be the solution

回答1:

Probably you are out of memory. Can you run it again on a 64 bit machine?



回答2:

0xC0000006 is STATUS_IN_PAGE_ERROR. As people much wiser than me already say, When you start getting in-page errors on your hard drive, it's time to go shopping for a new hard drive.



回答3:

A bit late, but maybe it will help someone.

If you are getting this error while starting the application from a network drive, try setting linker flag /SWAPRUN:NET in your vc++ project.

Disclaimer: I found this solution here