Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. MapViewOfFile Fails

MapViewOfFile Fails

Scheduled Pinned Locked Moved System Admin
help
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gupta Suraj
    wrote on last edited by
    #1

    Hi All, MapViewOfFile Fails with error message "Not enough storage is available to process this command". Can any one explain the reason for the above messsage. Thanks in Advance Suraj

    Suraj Gupta

    S M 2 Replies Last reply
    0
    • G Gupta Suraj

      Hi All, MapViewOfFile Fails with error message "Not enough storage is available to process this command". Can any one explain the reason for the above messsage. Thanks in Advance Suraj

      Suraj Gupta

      S Offline
      S Offline
      svsundar Vairavan
      wrote on last edited by
      #2

      Hi,MapViewOfFile Fails only when ur application continuously do that or systems virtual memory is low.Is ur application continuously doing MapViewOfFile?.If u r doing so u have to ummap the previous Mapped views using UnMapViewOfFile.But u can use the same handle which u got from CreateFileMapping/OpenFileMapping api. regards Vairavan

      G 1 Reply Last reply
      0
      • G Gupta Suraj

        Hi All, MapViewOfFile Fails with error message "Not enough storage is available to process this command". Can any one explain the reason for the above messsage. Thanks in Advance Suraj

        Suraj Gupta

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #3

        You're probably trying to map a file that's larger than the largest block of contiguous free address space in your process. For example, trying to map a 2GB file in one go will always fail on a 32-bit system. Map the file a smaller piece at a time.

        Stability. What an interesting concept. -- Chris Maunder

        G 1 Reply Last reply
        0
        • S svsundar Vairavan

          Hi,MapViewOfFile Fails only when ur application continuously do that or systems virtual memory is low.Is ur application continuously doing MapViewOfFile?.If u r doing so u have to ummap the previous Mapped views using UnMapViewOfFile.But u can use the same handle which u got from CreateFileMapping/OpenFileMapping api. regards Vairavan

          G Offline
          G Offline
          Gupta Suraj
          wrote on last edited by
          #4

          First of all, thanks for the reply. Application is not continously using MapViewOfFile. Probably what I feel that systems virtual memory is low which is causing the failure.

          Suraj Gupta

          1 Reply Last reply
          0
          • M Mike Dimmick

            You're probably trying to map a file that's larger than the largest block of contiguous free address space in your process. For example, trying to map a 2GB file in one go will always fail on a 32-bit system. Map the file a smaller piece at a time.

            Stability. What an interesting concept. -- Chris Maunder

            G Offline
            G Offline
            Gupta Suraj
            wrote on last edited by
            #5

            Thanks for the help. Even I feel the same..Probably trying to map a file that's larger than the largest block of contiguos free address space is causing the failure. But the problem is that it is not continous. Sometime problem comes when trying to map 32MB of memory and sometimes 80MB of memory. So I am not able to come to a conclusion and what should I try?

            Suraj Gupta

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups