Unix Programming - GlobalMemoryStatus.. total memory available of 0

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > January 2004 > GlobalMemoryStatus.. total memory available of 0





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author GlobalMemoryStatus.. total memory available of 0
Mathieu Fregeau

2004-01-23, 5:12 pm

Hi,

I compile under AIX a C language code. On the command

MEMORYSTATUS stat;
GlobalMemoryStatus(&stat);
long totalPhysical = stat.dwTotalPhys; /* return 0 !!! */


the totalphysical memory return 0!! is there is a problem with the
"permission" of getting memory on the unix machine? what could it be?

thank you

Mathieu


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com