Skip to main content
Skip table of contents

CloseAll [LJM User's Guide]

Closing all devices will remove all device handles from the LJM library, free all previously open devices to be opened again, and free allocated system resources.

Syntax

LJM_ERROR_RETURN LJM_CloseAll()

Parameters

None

Returns

LJM errorcode or 0 for no error.

Remarks

LJM_CloseAll is useful on program exit. Use LJM_Close to close an individual device handle.

Example

Closing all open devices

C
int LJMError; 
LJMError = LJM_CloseAll();
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.