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

Removing or inserting other USB devices while running crashes the program #12

Open
erSitzt opened this issue Feb 6, 2024 · 1 comment

Comments

@erSitzt
Copy link

erSitzt commented Feb 6, 2024

When i use Blinkstick in a Windows Forms app, i get the following error, as soon as i have this line of code.
I'm inserting/removing a usb-headset to test this. Happend with all types of usb i have here.

led = BlinkStick.FindFirst();

System.OverflowException
  HResult=0x80131516
  Nachricht = Arithmetic operation resulted in an overflow.
  Quelle = System.Private.CoreLib
  Stapelüberwachung:
   bei System.IntPtr.ToInt32()
   bei LibUsbDotNet.DeviceNotify.WindowsDeviceNotifier.OnDeviceChange(Message& m)
   bei LibUsbDotNet.DeviceNotify.Internal.DevNotifyNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)
@C-Enjoyer
Copy link

C-Enjoyer commented Oct 23, 2024

Can confirm, same problem here in WPF, .NET Standard 8.0.

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