LoggerGetMemoryOption


Function

Get the state of the memory option.

Format

Ret = LoggerGetMemoryOption ( AppId , MemorySize )

Parameters

AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] 

Specify Application ID retrieved by LoggerOpenApplication.

MemorySize [ VB.NET: UShort ] [ C++: unsigned short  * ] [ C#: out ushort ]

Specify the address for storing the memory size for holding C-LOGGER data.

The unit is 1 million [WORD].

Return Value

Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]

Definition

Return code

[Dec]

Description

LOGGER_ERR_SUCCESS

0

Normal completed

LOGGER_ERR_INVALID_ID

10010

Invalid AppId was specified.

The others (See also: Error Code List)

Initial Value

Nothing in particular.

Remarks

Get the state of the memory option.

For more information, see Memory Option topic.

Example

Get the memory size.

VB.NET

Dim Ret As Integer
Dim MemorySize As UShort

Ret = LoggerGetMemoryOption(AppId, MemorySize)

 

C++

long Ret;
unsigned short MemorySize;

Ret = LoggerGetMemoryOption(AppId, &MemorySize);

 

C#

int Ret;
ushort MemorySize;

Ret = logger.GetMemoryOption(AppId, out MemorySize);

 

See Also

LoggerSetMemoryOption Memory Option