-
Notifications
You must be signed in to change notification settings - Fork 3
Library name is incorrectly cleared on exit #12
Copy link
Copy link
Open
Description
When calling HidExit(), function ReleaseHidApi() is also called.
This function clears the variable that holds the default library name:
HidApiLoadedLibrary := ''; // Line 308 in hidapi.inc
When in the same program the HID API functions are used again, i.e. the library is reloaded, this will fail because the library name is now gone.
Global variable HidApiLoadedLibrary is not re-initialized.
This should be replaced with setting the library to the global default value:
HidApiLoadedLibrary := LIBHIDAPI; // Line 308 in hidapi.inc
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels