I'm implementing an application that should decide whether to move computations
to external memory, depending on RAM memory consumption. Is there a C++ function that computes my maximal RAM memory capacity, and the amount of currently consumed portion (in MB, perhaps). Any other suggestions on how to obtain these values are welcome.
Thanks

Well, USE
unsigned int UI_MemoryUsed = GetMemoryTotalPhys();
and TMemoryStatus *ms = new TMemoryStatus();
if you are using Borland C++ Compiler.
Also, see http://www.daniweb.com/forums/thread305575.html Thread on this site.
Thanks.

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.