Windows XP: "Out of Memory" + 2 GB RAM

message from Keping on 1 Jun 2004
Hi,

- Windows XP SP1
- 2 GB RAM
- >100 GB Hard disk space
- NVIDIA GeForce 5700 display device
- etc.

I was so anxious to test the full power of the new computer with an
image processing program developed in MS VC++. On one occasion, I
tried to read a very large data set consisting of six bands each with
the size of 15,000*15,000 pixels, by putting them in memory using
straighforward "new"/"delete" commands. When allocating these images
in RAM, however, an error message pops up, saying "Out of Memory". By
checking the "Task Manager", just after the program consumes more then
1G RAM, this error message pops up. In fact, another 1GB RAM is still
left and unused. I tried to change the size of virtual memory in the
system, and it has no effect.

Could you please offer some suggestions or solutions, either hardware
or software-related?

Thanks
Keping
 
=?Utf-8?B?cg==?= replied to Keping on 1 Jun 2004
Try standard memory hungry apps. If they work ok, contact your program developer.

Good Luck!
 
Tom replied to Keping on 1 Jun 2004
Take a look at the program you are using to view the image and check
wherever the preference settings are. Chances are, the program automatically
assigns itself RAM before any usage occurs.

i.e. Photoshop, when freshly installed, will have set to use 75% of system
memory to itself when launched by default, but changes can be made.
 
Keping replied to Tom on 1 Jun 2004
Thanks for your suggestion.

My situation is not what you expected, and the program does not have
that option for settings. I am just guessing the problem of "Out of
Memory" could be related to the way of allocating a large block of
memory using the "new" method. Is that possible?
 
Keping replied to Keping on 2 Jun 2004
Figured it out. The "problem" is related to when the memory should be
allocated as the program runs. If I move those memory allocation codes
to the top of the program, not at the point where such requests are
needed, it seems working properly.

Now this problem from a rare experiment is over.
 
=?Utf-8?B?TUFQ?= replied to Keping on 1 Jun 2004
Hi,

Just got a new computer for quickly processing some large images. The
machine has the following specifications:

- Windows XP SP1
- 2 GB RAM
- >100 GB Hard disk space
- NVIDIA GeForce 5700 display device
- etc.

I was so anxious to test the full power of the new computer with an
image processing program developed in MS VC++. On one occasion, I
tried to read a very large data set consisting of six bands each with
the size of 15,000*15,000 pixels, by putting them in memory using
straighforward "new"/"delete" commands. When allocating these images
in RAM, however, an error message pops up, saying "Out of Memory". By
checking the "Task Manager", just after the program consumes more then
1G RAM, this error message pops up. In fact, another 1GB RAM is still
left and unused. I tried to change the size of virtual memory in the
system, and it has no effect.

Could you please offer some suggestions or solutions, either hardware
or software-related?

Thanks
Keping

Does this new system have hyperthreading?
What is your virtual memory set to?
 

Archived message: Windows XP: "Out of Memory" + 2 GB RAM (Microsoft Windows XP)