On 2012-01-10 21:50, Heck wrote:
> Now, within a 64 bit app, the calloc of 1.5 GB works, but not the
> MapViewOfFile for a view of the same size. It fails with out of
> memory, as before.
>
> I've moved into the VS debugger to watch MapViewOfFile fail, but, when
> running under the debugger, it doesn't fail.
>
Two ideas come to mind: either the failing executable is not, in fact, the
executable you just built and ran under the debugger (but an old copy of the
32-bit one, for example) or your code contains a bug that happens to not
manifest itself when running under the debugger.
MapViewOfFile() itself behaving differently when running under a debugger is
not impossible but vastly less likely.
--
J.