Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In several applications, the Save and Load dialog windows are just not showing. And in notepad (which obviously handles the return code) is reporting an out of memory issue, which I'm sure is not the case; I think it's assuming it's out of memory as it can't get the window handle. In any case, there's something definitely wrong with Windows, but there's nothing in the event log. Any idea why this might happen?

share|improve this question
up vote 1 down vote accepted

I'm guessing Windows XP 32-bit with over 2 GB of RAM. There seems to be problems in Windows where it reports erroneously that it is out of memory, when in fact there is more than it needs. This is due to using a signed integer instead of an unsigned one to measure the amount of RAM (you know, those signed-unsigned comparisons the compilers warn us about).

You either have to remove RAM until you have 2 GB or less, or you need Physical Address Extension (PAE). Alternatively, if you are compiling a program, you may make it aware of more than 2 GB of RAM by using the /LARGEADDRESSAWARE linker flag for Microsoft's linker, but this is not the problem mentioned here. [source]

You may also want to try to update Windows XP to the latest version, which may contain updated binaries aware of larger addresses, which would solve the problem. There are also the /3GB, /4GB and /PAE options in boot.ini which will make the system aware that it is running more than 2 GB of RAM.

I hope this solves the problem. You may also try to switch to a 64-bit version of the operating system, but that is not always an option because of monetary costs of some operating systems and due to the availability of some drivers.

EDIT: I forgot to mention that you may also try to increase the size of the pagefile. It can help, especially if the pagefile was 2 GB and you increased the amount of RAM available without modifying the size of the pagefile.

share|improve this answer
Hmm, will try removing 1GB of ram, if updating to latest service pack does not work. – nbolton Mar 31 '10 at 20:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .