Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > WinUSB Error 1008


Reply
Fix Vista Errors
Thread Tools Display Modes

WinUSB Error 1008

 
 
Asaf Shelly
Guest
Posts: n/a

 
      12-29-2009
Hi All,

I am using WinUSB via a .Net component written in C#.
Every first read I get error 1008 - ERROR_NO_TOKEN "An attempt was made to
reference a token that does not exist". This happens only the first time I
read after connecting the device.
No information in the system event logs.
The full source code is here
http://www.asyncop.com/MTnPDirEnum.a...nUSB+Component (see at the bottom)

Any idea why 1008 may happen?

TIA,
Asaf
 
Reply With Quote
 
 
 
 
Tim Roberts
Guest
Posts: n/a

 
      12-31-2009
Asaf Shelly <> wrote:
>
>I am using WinUSB via a .Net component written in C#.
>Every first read I get error 1008 - ERROR_NO_TOKEN "An attempt was made to
>reference a token that does not exist". This happens only the first time I
>read after connecting the device.
>No information in the system event logs.
>The full source code is here:
>http://www.asyncop.com/MTnPDirEnum.a...nUSB+Component (see at the bottom)


That's the source code for the component, but not for the code in your app
that CALLS the component. That's what we need to see. Are you sure you
have the endpoint numbers right? Did you set the GUID in the component to
the GUID from your INF? What endpoints does your device have?
--
Tim Roberts,
Providenza & Boekelheide, Inc.
 
Reply With Quote
 
Asaf Shelly
Guest
Posts: n/a

 
      12-31-2009
Hi Tim,

The workaround was reading zero bytes:
winUSBDevice1.ReadBlocking(0);

Only the first read will fail 1008 and all the other operations work great
so the system is set up correctly. I also know that it is the first read
regardless of write, that nothing goes to the USB wire when the read fails
and that it is happening on several machines.

Thanks,
Asaf
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WinUsb timing issue Kenneth Adelhorst Andersen Windows Vista Drivers 6 02-22-2010 08:08 AM
DTM and WinUSB submission dmm Windows Vista Drivers 1 12-26-2009 11:01 PM
RE: Installation of WinUSB on XP Pro SP2 Morten Guld Windows Vista Drivers 0 12-23-2009 09:08 PM
Re: Installation of WinUSB on XP Pro SP2 Doron Holan [MSFT] Windows Vista Drivers 0 12-18-2009 04:46 PM
WinUSB on XP without WDK giajh01 Windows Vista Drivers 4 12-03-2009 06:43 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59