You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I always call open() and close() methods before and after processing the data, everything works fine. However, if there is an error during the processing, and if I lose the reference to the original hid.device() object, the call to open(), on a newly created hid.device() will fail with an IOError. A call to close() on the recreated object doesn't seem to actually close the resources that have been associated with the original object. There seems to be no possibility of closing the hid device, based on vid and pid, except for always pairing the open() and close() calls up.
Is this the supposed behavior, and if so, what is the preferred method of handling such situations (e.g. open(), process(might fail), close())?
Best,
Slobodan
The text was updated successfully, but these errors were encountered:
Hi Gary,
If I always call open() and close() methods before and after processing the data, everything works fine. However, if there is an error during the processing, and if I lose the reference to the original hid.device() object, the call to open(), on a newly created hid.device() will fail with an IOError. A call to close() on the recreated object doesn't seem to actually close the resources that have been associated with the original object. There seems to be no possibility of closing the hid device, based on vid and pid, except for always pairing the open() and close() calls up.
Is this the supposed behavior, and if so, what is the preferred method of handling such situations (e.g. open(), process(might fail), close())?
Best,
Slobodan
The text was updated successfully, but these errors were encountered: