nn::nex::GlobalVariables::GetCount Member Function

Syntax

static qInt32 GetCount();

Parameters

None.

Return Values

The number of calls to the AcquireInstance function minus the number of calls to the ReleaseInstance function.

Description

Gets the number of calls that should be made to the ReleaseInstance function when the library is released.

If the AcquireInstance function has been called x number of times, then the ReleaseInstance function must be called the same number of times. This function returns the value that results from subtracting the number of calls to the ReleaseInstance function from the number of calls to the AcquireInstance function. It can be used after the instances of NgsFacade and NetZ are released. Call the ReleaseInstance function the same number of times as the return value of this function to release the global variables. This function may return an invalid value if called before NgsFacade and NetZ are released. In the debug build, the function stops on an assert.

Revision History

2014/09/11
Added that this function can be used after NgsFacade and NetZ are released.
2011/06/01
Initial version.

CONFIDENTIAL