Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetSerialNumberString can fail and cause hid_open to crash #90

Open
TamToucan opened this issue Nov 28, 2012 · 2 comments
Open

GetSerialNumberString can fail and cause hid_open to crash #90

TamToucan opened this issue Nov 28, 2012 · 2 comments

Comments

@TamToucan
Copy link

For some reason when I plug 2 devices in at the same time to the HUB on my monitor the call to GetSerialNumberString for the second device fails (GetLastError returns 2). The wcscmp in hid_open then crashes because the dev serial_number is null.

Putting a Sleep(100) and retrying the GetSerialNumberString obtains the serial number.

@signal11
Copy link
Owner

ugh... Windows 7?

@TamToucan
Copy link
Author

Yes Windows 7 64bit, but to confuse matters it's running in VM on a Centos 6.3 machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants