Bug Report CWSDPMI returns incorrect available memory value - page faults when used Summary: On large memory machines (>256Mb) CWSDPMI will page fault when using memory which should be valid. This is typically seen when paging is disabled (or limited to a small size) and the program is trying to use all of the physical memory. Small changes in configuration (from raw to XMS) may make the problem disappear. Analysis: It appears CWSDPMI is computing a size or offset incorrectly. I've been able to reproduce the problem, but I don't know the exact cause or how to fix it yet. Its a bad bug since a program may ask CWSDPMI how much memory is available, then allocate it, then fail when using it. Workarounds: Provide a larger swap file.