Page 1 of 1

Memory addressing problem.

Posted: Thu Aug 26, 2004 1:02 pm
by Iceman
We have a PC at here work that was recently upgraded to 4Gb RAM. Windows XP sees the RAM but we cannot allocate space larger than 2Gb from our C++ programs. Has anyone seen this before? Could this be a Windows limitation? Could this be a RAM problem? I am perplexed ...

Posted: Thu Aug 26, 2004 1:08 pm
by Iceman
Never mind ... I found it ... There is a 2Gb heap limit PER PROCESS in windows ...

http://teamapproach.ca/trouble/Memory.htm

http://www.mail-archive.com/activeperl@ ... 15067.html

Posted: Thu Aug 26, 2004 1:09 pm
by Iceman
dbl post++

Posted: Thu Aug 26, 2004 7:43 pm
by Krom
You can delete your posts if you accidentally double post on this BB. At least the "delete this post" checkbox in the edit post says so. I have not actually tested it.

Posted: Thu Aug 26, 2004 8:30 pm
by SSX-Thunderbird
But your postcount goes down by one if you do that :P.

All systems in the NT core have this 2GB limit. Of the 4GB, the system allocates 2GB for itself (maximum) and 2GB for programs. At least that's what I remember reading.

Posted: Thu Aug 26, 2004 8:39 pm
by Iceman
SSC-Thunderbird wrote:But your postcount goes down by one if you do that :P.
yup++ :D

Posted: Thu Aug 26, 2004 8:42 pm
by DCrazy
I just wish that we could break the 4GB barrier... but reading up on my protected mode documentation means that's not the case.

Posted: Thu Aug 26, 2004 8:45 pm
by SSX-Thunderbird
From what I've read, a 32-bit system cannot address more than that at once.

Posted: Thu Aug 26, 2004 9:13 pm
by DCrazy
Yeah, except for a 32/64 hybrid.

Posted: Thu Aug 26, 2004 9:45 pm
by fliptw
or, you do it like the Xeons do it.

36-bit addressing.

there are versions of windows that allow a greater than 2GB heap.

The more expensive ones, IIRC.