Release

Decrements the reference count for an ADLX interface.

Syntax

Copied!

adlx_long    Release ()

Parameters

N/A

Return Value

Returns the new reference count.

Remarks

Release must be called when an interface is no longer needed. It decrements the reference counting and returns the new reference count. When the reference count reaches zero, the object behind this interface will self-destruct and free its memory and resources.

Additional Info

In C++, when using ADLX interfaces as smart pointers, there is no need to call the Release because smart pointers call it in their internal implementation.

Requirements

Header

include “ADLXDefines.h”

Minimum version

1.0