Hi
What the difference between opening a file then allocating memory for it's contents compared with memory mapping its entire contents so for example...
would allocating 10Mbyte for a file be the same as memory mapping an entire 10M file?

The Martial:confused:
Posted on 2001-08-07 09:20:34 by MArtial_Code
Well, in both cases it occupies 10 mb of memory, obviouvsly. But in different spaces. Memory mapped files are put in shared area (80000000H - 0bfffffffH), while memory allocated with GlobalAlloc (and similar) is in your address space. As the name says, shared area con be accessed by all processes.
Under NT, shared area doesn't exist..shared pages are mapped in the address spaces of processes that needs them
Posted on 2001-08-07 16:03:01 by TheCla|rv0yant