Click to See Complete Forum and Search --> : MapViewOfFile problems


SeventhStar
February 6th, 2008, 06:59 AM
Hey, I'm developing a program that uses two pretty big memory mapped files. One 512 mb and one 256 mb. It works fine with Windows Vista (32 and 64 bit) and Windows XP 64 bit, but when ran under 32 bit Windows XP it crashes, because MapViewOfFile returns 0 on the second file.

I've determined by now that it works ok when having to deal with two 256 mb files or a single 512 mb file. But so far I cannot break the 512 mb total barrier.

It seems like the program is running out of address space. 32 bit WinXP programs have 2gb of address space. Both files are 768 mb, and the rest of the program uses about 100 mb more. So not even a gb.

Does anyone have an idea of what might be wrong?

Thanks in advamce for any help

billconan
March 6th, 2012, 12:18 AM
I think I'm having the same issue.

Does anyone has an answer?

billconan
March 6th, 2012, 01:39 AM
I think I may know the answser:

please see this article: http://blogs.technet.com/b/markrussinovich/archive/2009/03/26/3211216.aspx

there is a 491mb limitation on xp for paged pool