Hi all,

How to find free physical memory...
I am using new operator to allocate memory..
I tried GlobalMemoryStatus (windows api) to analyse the current free
memory.
new is giving exception still GlobalMemoryStatus
shows sufficient free memory..

I am using visual studio 2005 for development.
and I want to avoid the exception given by new operator.

Is there any other way to analyze current free memory

Recommended Answers

All 2 Replies

Hi all,

How to find free physical memory...
I am using new operator to allocate memory..
I tried GlobalMemoryStatus (windows api) to analyse the current free
memory.
new is giving exception still GlobalMemoryStatus
shows sufficient free memory..

I am using visual studio 2005 for development.
and I want to avoid the exception given by new operator.

Is there any other way to analyze current free memory

you get a bad_alloc exception?

Posting two threads on the same topic is not allowed. Please reread the Member Rules.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.