Re: [Libusbx-devel] Crashes

2012-11-13 Thread Toby Gray
On 12/11/12 20:09, Pete Batard wrote: > Hi Stefano, > > On 2012.11.12 12:06, Stefano Di Martino wrote: >> is this supposed to crash, when you don't free a list? >> >> for(i = 0; i < 100; i++) { >> cnt = libusb_get_device_list(NULL, &devs); >> if (cnt < 0) >> return (int) cnt;

Re: [Libusbx-devel] Which removable drive matches which USB device?

2012-11-13 Thread Tim Roberts
therau2000 wrote: > > In my case, it is always a one-to-one match; all USB devices have only > one partition formatted as FAT32. Today, maybe. Will your software never be used on other systems? > What is the API solution you were referring to? I might have to use > ioctls for another purpose...

Re: [Libusbx-devel] Crashes

2012-11-13 Thread Pete Batard
On 2012.11.13 10:23, Toby Gray wrote: > I've been tempted to write a simple test application to do things > similar to this for a while now. Just a few for loops which call various > APIs many hundreds of times to help detect memory leaks. That would be nice. I see no issue adding such a test app

Re: [Libusbx-devel] Crashes

2012-11-13 Thread Pete Batard
On 2012.11.13 07:32, Stefano Di Martino wrote: > Via PyUSB I check every 2 seconds, if a usb device has been attached or > dettached on a specific usb hub. After 32 times, I get the error > "No such device (it may have been disconnected)". > > The developer of PyUSB said, that it may has to do som

Re: [Libusbx-devel] Crashes

2012-11-13 Thread Ludovic Rousseau
2012/11/13 Pete Batard > On 2012.11.13 10:23, Toby Gray wrote: > > I've been tempted to write a simple test application to do things > > similar to this for a while now. Just a few for loops which call various > > APIs many hundreds of times to help detect memory leaks. > > That would be nice. I

Re: [Libusbx-devel] Which removable drive matches which USB device?

2012-11-13 Thread therau2000
On Tue, 2012-11-13 at 10:16 -0800, Tim Roberts wrote: > therau2000 wrote: > > > > > > > In my case, it is always a one-to-one match; all USB devices have > > only one partition formatted as FAT32. > > > Today, maybe. Will your software never be used on other systems? When it happens, if it e

Re: [Libusbx-devel] Compiling a Universal binary on OS X?

2012-11-13 Thread Sven Köhler
Am 25.05.2012 08:41, schrieb Kyle McKay: > CFLAGS='-O2 -arch x86_64 -arch i386 -arch ppc' \ > ./configure --disable-dependency-tracking Thank you very much. On Snow Leopard, I tried > CC='gcc-4.2' CFLAGS='-arch ppc -arch ppc64 -arch i386 -arch x86_64 > -mmacosx-version-min=10.5 -isysroot /Develo

Re: [Libusbx-devel] Compiling a Universal binary on OS X?

2012-11-13 Thread Sean McBride
On Wed, 14 Nov 2012 00:48:39 +0100, Sven Köhler said: >May I ask: is it clever to statically link to libusbx? Should be fine. >Has the interface >between libusbx and the OS X kernel changed much over the years? Will >the above binaries (compiled against 10.4 or 10.5) work on the latest OS >X? Or