Hi,

On Tue, Jan 1, 2013 at 7:57 AM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> On Tue, Jan 1, 2013 at 2:43 AM, Mohamed HAMZAOUI <requin...@gmail.com> wrote:
>> Hi,
>> Happy new year for everyone :)
>>
>> I have a strange problem with libusbx 1.0.14 on windows 7
>>
>> when i run this test :
>>
>> status = libusb_init(&ctx);
>>
>> libusb_get_device_list(ctx,&list_devices);
>>
>> libusb_open(libusb_dev[dev_index], &handle);
>>
>> libusb_close(handle);
>
> Why you close the handle and then open?
> This should not be here.
>

I have just describe for you the summary of the sequence of actions in
a large program ...
There are various purposes for which you can open and close a dev and
then open it another time... (managing licenses saved on the card in
my case...), but in general there is no restriction on the
documentation !

>> libusb_open(libusb_dev[dev_index], &handle);
>>
>> Here the libusb_open return -3 and debug messages is :
>> libusbx: error [winusbx_open] could not open device
>> \\.\USB#VID_0525&PID_A4A0#1_00000000#{A5DCBF10-6530-11D2-901F-00C04FB951ED}
>> (interface 0): [5] Access Denied
>
> Another thing, did you install a supported driver (like WinUSB)?
> https://github.com/libusbx/libusbx/wiki/Windows-Backend#wiki-How_to_use_libusbx_on_Windows
>

Sure I have the correct driver installed via zadig and I use it
normally (this is with him that I perform the first open and several
IO with my device)

Regards,
Mohamed

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to