Browse
 
Tools
Rss Categories

LV_SRE_ClosePort (Deprecated)

Reference Number: AA-00668 Views: 7752 0 Rating/ Voters

Closes the port, and releases its resources.

Function

  • int LV_SRE_ClosePort(HPORT hport)

Parameters

hport

The port's handle.

Return Values

LV_SUCCESS

The port has been successfully destroyed.

LV_INVALID_HPORT

The input hport is not a valid one.

LV_EXCEPTION

An exception occurred while processing the request.

Remarks

Closing a port frees up a license (each open port requires one license). For this reason, you should close every port as soon as it is no longer needed.

This function has been deprecated in favor of LV_SRE_DestroyClient and will be removed from future releases.

See Also