cwindowsmemorydoswatcom

DOS/4GW Fatal Error (1307): not enough memory


I'm trying to run a dos/4gw application in Win7 32 bit OS. I'm getting the following error message, DOS/4GW fatal error (1307): not enough memory

When I run the same application in WinXP 32 bit OS, it works fine and no issues.

The dos/4gw application was built using the Watcom C compiler.

The mem command shows the following avaiable memory,

655360 bytes total conventional memory 655360 bytes available to MS-DOS 580640 largest executable program size 16777216 bytes total EMS memory 16777216 bytes free EMS memory 32505856 bytes total contiguous extended memory 0 bytes available contiguous extended memory 15580160 bytes available XMS memory MS-DOS resident in High Memory Area

From the above it is clear that the memory is less than 1MB. However my program needs more than that. Basically I need to extend my DOS memory to get more than 1MB of memory for running my dos/4gw application.

Could any one please help in resolving this memory issue?

Thanks!

-Anand


Solution

  • The answer to the question is the reply sent by doynax:

    "I believe there is a shim in recent versions of Windows limiting the available DPMI memory to 32 MB, for yet more ancient software incapable of unprepared such wast quantities of RAM. You may try creating a DpmiLimit key under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WOW in the registry to adjust this with the limit in bytes as a DWORD"