Hi, On 09/22/2013 09:17 PM, Igor Furlan wrote: > On Sun, Sep 22, 2013 at 2:37 AM, Hans de Goede <hdego...@redhat.com> wrote: >> Not really a trick or a workaround, you just need to make sure >> that your application properly closes any devices it has opened >> before exiting. >> >> Regards, >> >> Hans > > Since I am not professional (or even semi professional) programmer, > can you, please, point me to the doc | info | code snippet | hint , > where I can learn how to close any devices properly. > > What I did until now, was to take the C++ code example from NANO River > Tech web side and compile it on my system (CentOS 6.4). At that time, > my CentOS had only the 'old' libusb installed. I am talking here about > libusb 0.1 (legacy). Or, to be more specific, NANO River Tech uses > http://nanorivertech.com/files/viper/linux/libusb-0.1.12.tar.gz.
Since you are using libusb-0.1 in this case the answer would be to call usb_close() on the usb_dev_handle returned by usb_open() before exiting the program. Regards, Hans ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel