MemoryInfo

Description:

baMemoryInfo returns information about system memory.

Platforms:

Windows and Macintosh

Usage:

Result = baMemoryInfo( InfoType )

Arguments:

String.
InfoType is the type of information to get. Can be:

"ram" 

the amount of physical ram installed Windows Macintosh

"free ram" 

the amount of physical ram not being used Windows Macintosh

"swap" 

the size of the current swap file Windows

"free swap" 

the amount of the swap file not being used Windows
"virtual"  the size of the virtual address space Windows
"free virtual"  the amount of free memory in the virtual address space Windows
"load"  the percentage of physical memory in use Windows
"free"  the amount of free memory, including physical and virtual Macintosh
"max block"  the largest block of memory, including physical and virtual Macintosh

Returns:

Float.
Returns the information in bytes.

Examples:

Director:
ram = baMemoryInfo( "ram" )

Authorware:
free := baMemoryInfo( "free ram" )
 

Notes:

On Macintosh, the free and max block options return a large meaningless number. This is due to the memory management system of OSX.