CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2002
    Location
    Sofia, Bulgaria
    Posts
    661

    MapViewOfFile problems

    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
    It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames

  2. #2
    Join Date
    Jan 2006
    Posts
    99

    Re: MapViewOfFile problems

    I think I'm having the same issue.

    Does anyone has an answer?

  3. #3
    Join Date
    Jan 2006
    Posts
    99

    Re: MapViewOfFile problems

    I think I may know the answser:

    please see this article: http://blogs.technet.com/b/markrussi...6/3211216.aspx

    there is a 491mb limitation on xp for paged pool

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured