I'm writing a Windows Form app, and I have implemented event handlers for USB device events (attach, detach). I can easily intercept Windows messages by just overriding the virtual WndProc from the Form base class and using its Message parameter. The problem is that when the Main (UI) Thread is blocked (while waiting for a worker thread to terminate or simply displaying a form with ShowDialog), I don't get notified for device events.
i need a way to implement those event handlers in a worker thread so I still get notified even when the UI Thread is blocked.
Thanks,
i need a way to implement those event handlers in a worker thread so I still get notified even when the UI Thread is blocked.
Thanks,