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);

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

then i tried this test :
status = libusb_init(&ctx);

libusb_get_device_list(ctx,&list_devices);

libusb_open(libusb_dev[dev_index], &handle);

libusb_free_device_list(libusb_dev, 1);

libusb_close(handle);

libusb_exit(ctx);

status = libusb_init(&ctx);

libusb_get_device_list(ctx,&list_devices);

libusb_open(libusb_dev[dev_index], &handle);

ThenI have the same problem !

May be we cannot open close the same device many time on the same application.
Is this normal ?

Regards,
Mohamed

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 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_122412
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to