How to implement USB event handlers so I get notified even when UI Thread is blocked?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • onur karabulut
    New Member
    • Jan 2011
    • 2

    How to implement USB event handlers so I get notified even when UI Thread is blocked?

    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,
Working...