In errsysw.prg, nExtMem() does not indicate my 6 GB of Ram.
It only says 1 megs:
Hardware memory: 1 megs
Also, it may cause internal problems to FWH, as it points out no memory, when in fact it is plenty of gbs!!.
Hardware memory: 1 megs
FWH code:The amount of actual physical memory, in bytes.
Code: Select all
HB_FUNC( NEXTMEM ) // --> nHardwareMemory
{
MEMORYSTATUS mst;
mst.dwLength = sizeof( MEMORYSTATUS );
GlobalMemoryStatus( &mst );
hb_retnl( mst.dwTotalPhys );
}
Have a look here: http://msdn.microsoft.com/en-us/library/aa366586.aspx:Antonio Linares wrote:FWH function nExtMem() is a simple wrapper to the Windows API function GlobalMemoryStatus() :
Our code does nothing except to call to Windows API, so the question is; is that WIndows API function failing ?
Code: Select all
HB_FUNC( NEXTMEM ) // --> nHardwareMemory
{
MEMORYSTATUSEX mst;
mst.dwLength = sizeof( MEMORYSTATUSEX );
GlobalMemoryStatusEx( &mst );
hb_retnl( mst.ullAvailPhys );
}
Code: Select all
hb_retnll( mst.ullTotalPhys );