ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

取消
顯示結果 
搜尋替代 
您的意思是: 

Total and Free RAM size (Win 7 - 64bit)

Hi people,

 

I'm using LV2009, and i compiled an .exe under Win7 32bit in order to have the TotalSize and the FreeSize of the RAM.

 

I putted GetMemoryStatusEx and i run this .exe under an other PC with Win7 64bit and 8Gb RAM memory.

 

The problem is that the ToalSize of RAM in this application is shown as 0 GB 😕 same thing for the FreeSizeRAM = 0 Gb.

 

And when i change the GetMemoryStatusEx to GetMemoryStatus, i see TotalSize = 4Gb and the FreeSize = 4Gb too !! 😕

 

Can you advise please.

 

0 積分
1 條訊息(共 4 條)
2,563 檢視

Hi Blue_Strike,

 

According to this KnowledgeBase article, 32-bit LabVIEW can only use up to 4 GB of memory on a 64-bit Windows 7 system.

0 積分
2 條訊息(共 4 條)
2,533 檢視

Hi,

 

Well, I will not "use" the labview memory. Labview 32bit can't use over 4Go of memory. it's the same thing for all application 32bits.

 

In fact, I want just you Windows 64bit API to got information about the OS memory occupation. so, 'i should use the API supported by the OS 64 bit, no problem with that i guess.

 

My problem is that I couldn't do it 😕

 

0 積分
3 條訊息(共 4 條)
2,527 檢視

I was able to find this forum post which discusses this issue. You may find it useful.

0 積分
4 條訊息(共 4 條)
2,495 檢視