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
The amount of actual physical memory, in bytes.
HB_FUNC( NEXTMEM ) // --> nHardwareMemory
{
MEMORYSTATUS mst;
mst.dwLength = sizeof( MEMORYSTATUS );
GlobalMemoryStatus( &mst );
hb_retnl( mst.dwTotalPhys );
}
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 ?
HB_FUNC( NEXTMEM ) // --> nHardwareMemory
{
MEMORYSTATUSEX mst;
mst.dwLength = sizeof( MEMORYSTATUSEX );
GlobalMemoryStatusEx( &mst );
hb_retnl( mst.ullAvailPhys );
}
hb_retnll( mst.ullTotalPhys );
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 103 guests