Link to home
Start Free TrialLog in
Avatar of VapiSoft
VapiSoft

asked on

Out of memory

Hi,

I have a visual C++ app that sometimes (very rare) it creates an error (Message Box) "Out of memory". It seems that it happens only in release version and not when I am using the debug version.
Also, It is not because a memory lost - I checked the memory of the app when the Message-Box is on and there is no problem, so I think it is because a Page Fault.
How can I debug it???
Avatar of greg-hawkins
greg-hawkins
Flag of United Kingdom of Great Britain and Northern Ireland image

Hi,

I'd say it may well be page file, what I would do first is make the page file bigger... Whats your O/S?
Avatar of VapiSoft
VapiSoft

ASKER

I am using VISTA.
Why do you say that it is a page-file problem?
How can I create a page-file problem?
A page-file is a file on the local disk which acts like slow RAM. this is where big programs will store data for slightly faster access. (normally databases etc).

If you would like to check on the size of your page file you need to, right click on "computer" then "properties" - "advanced system properties" then "advanced" tab.

'performance - settings', then 'advanced' tab once more. It will then say how much your 'Virtual Memory' is, this should be close to how much RAM is in your machine.
It is 2088 MB
I don't understand why you think it is bacuase of that, and I don't see how I can affect it in my code.
I think that the problem is "Page Fault"

When you complile your code it takes up a large amount of memory and also CPU. I thought it maybe down to either RAM or Pagefile not being high enough to process and store all of the information, therefore giving an 'out of memory'.

Maybe? (I could have gotten the complete wrong end of the stick).
ASKER CERTIFIED SOLUTION
Avatar of VapiSoft
VapiSoft

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ah right.

Well; good one, and sorry I led you on a wild goose chase. :)
I think it has an importance for other people how to debug it.