Re: [Libusbx-devel] Fwd: problems with libusb_get_string_descriptor()

2012-05-08 Thread Peter Stuge
Orin Eman wrote: > The point here is if a program crashes in libusb, libusb gets the > blame. Doesn't matter if it was a null pointer from the > application, crash in libusb, libusb gets blamed. At some point that may turn out to be a significant problem. A core design value of OpenUSB is to do

Re: [Libusbx-devel] Fwd: problems with libusb_get_string_descriptor()

2012-05-07 Thread Orin Eman
I'll just add my opinion on parameter checking... Anyone remember the "User Application Error" that old Windows versions used to pop up? It was Microsoft's attempt to deflect blame for exactly the same kind of crash in the Windows environment - most likely the user had passed in a bad pointer (of

[Libusbx-devel] Fwd: problems with libusb_get_string_descriptor()

2012-05-07 Thread Xiaofan Chen
This may be good to be indexed in the libusbx mailing list as well. Whole thread: http://libusb.6.n5.nabble.com/FreeBSD-libusb-missing-libusb-get-descriptor-td5689243.html Regards, Xiaofan -- Forwarded message -- From: Peter Stuge Date: Mon, May 7, 2012 at 10:47 PM Subject: Re: