www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - error message: Fatal error: out of memory on a 768 MB machine?

↑ ↓ ← Japheth <mail japheth.de> writes:
hello,

I run DMC on a win98se machine which has 768 MB installed.
Because I thought 768 MB is more than enough for win98se I deactivated virtual 
memory (Paging=off in [386Enh] of system.ini). After that step dmc complains 
with "Fatal error: out of memory".

I assume it expects Win32 API GlobalMemoryStatus() to return a value != 0 in 
field dwAvailPageFile? Why? Possibly this restriction is not necessary.

Japheth
Aug 30 2005
↑ ↓ "Walter" <newshound digitalmars.com> writes:
"Japheth" <mail japheth.de> wrote in message
news:df3cvg$icp$1 digitaldaemon.com...
 hello,

 I run DMC on a win98se machine which has 768 MB installed.
 Because I thought 768 MB is more than enough for win98se I deactivated

 memory (Paging=off in [386Enh] of system.ini). After that step dmc

 with "Fatal error: out of memory".

 I assume it expects Win32 API GlobalMemoryStatus() to return a value != 0

 field dwAvailPageFile? Why? Possibly this restriction is not necessary.

The compiler relies on the system having virtual memory for its implementation of precompiled headers. It's internal memory management is wrapped up in this even if precompiled headers are not being used.
Aug 31 2005
↑ ↓ → Japheth <mail japheth.de> writes:
Walter wrote:
 
 The compiler relies on the system having virtual memory for its
 implementation of precompiled headers. It's internal memory management is
 wrapped up in this even if precompiled headers are not being used.
 
 

Thanks for the info! Although I still cannot imagine why the size or existance of a swap file should be an issue for an application. Even a CreateFileMapping() function call with a hFile argument of -1 (in which case the docs say the object is "backed by the operating-system paging file") works fine if "virtual memory" is disabled in win9x.
Aug 31 2005