AnsweredAssumed Answered

vrf Error memory leak

Question asked by g.nied on Dec 16, 2002
Hi Barrie,

> Is there a way for Vee to monitor memory status, which would allow
> signaling the operating system to shutdown and restart the application
> when there is a problem?

Use from Kernel32.dll:
void __stdcall GlobalMemoryStatus (int *MEMORYSTATUS)
with the following structure mapped to an Int32 array (size 8):

Public Type MEMORYSTATUS
        dwLength As Long
        dwMemoryLoad As Long
        dwTotalPhys As Long
        dwAvailPhys As Long
        dwTotalPageFile As Long
        dwAvailPageFile As Long
        dwTotalVirtual As Long
        dwAvailVirtual As Long
End Type

The available virtual memory is the last value (A[7]) of your result
array in Bytes.

Hope it helps,

        Georg Nied
   Software-Development
Hansestr.7 - 51149 Cologne
        Germany
Mail: info@gn-software.de



---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes