Author Topic: WinUsb_Initialize fails  (Read 29243 times)

juliang

  • Member
  • ***
  • Posts: 13
Re: WinUsb_Initialize fails
« Reply #15 on: January 26, 2011, 05:14:49 pm »
I finally found what the issue was, it turned out that (this I don't know why) my device remains active like 1 or 2 seconds, I mean if I freely run my application it will find the device, it will initialize WinUSB, it will query the device, etc. But, if I tried to debug the application, all WinUSB API functions after the breakpoint will return false, this is because it looks like my device get detached somehow and it cannot be found unless I reset it. Is this a normal behavior?

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: WinUsb_Initialize fails
« Reply #16 on: January 27, 2011, 09:32:41 pm »
Offhand I don't know the reason for what you're seeing and don't have a WinUSB device set up for testing. A protocol analyzer would show what is happening on the bus.

Jan