Skip to content

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

@erSitzt

Description

@erSitzt

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions