Re: [Libusbx-devel] What about pull request #59: Fix compiler warnings when building with CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES;

2013-01-28 Thread Pete Batard
Just applied 3&4 but dropped 1&2. 1&2 produce sign conversion warnings in MSVC, that seem to be justified since we're comparing _packet with transfer->num_iso_packets, that is defined as an int. I don't quite get why we would want to switch to unsigned there. Also, could you please try to merge

Re: [Libusbx-devel] libusb_interrupt_transfer does not return in case of error

2013-01-28 Thread Pete Batard
On 2013.01.27 20:21, Zoltán Kovács wrote: > I only use libusbx and make it a bit better if I can... :) Which is absolutely fine. Your patch has now been pushed to mainline. Thanks again for the help. Regards, /Pete --

Re: [Libusbx-devel] [libusbx] persisting LIBUSB_ERROR_NO_MEM on burst condition

2013-01-28 Thread Pete Batard
Hi Mohamed, On 2013.01.28 09:57, Mohamed HAMZAOUI wrote: > I return for you for a crash problem in my soft. > For remember, I'm now developping a software based on libusbx to send > and receive with my CAN-USB gateway card. > In my program i have a start a thread to handle event with this code : >

Re: [Libusbx-devel] [libusbx] persisting LIBUSB_ERROR_NO_MEM on burst condition

2013-01-28 Thread Mohamed HAMZAOUI
Please do not take into account this : libusb_cancel_transfer(transfer->xfer); /* the callback do the free */ Regards, Mohamed On Mon, Jan 28, 2013 at 10:57 AM, Mohamed HAMZAOUI wrote: > Hi, > I return for you for a crash problem in my soft. > For remember, I'm now developping a software based o

Re: [Libusbx-devel] [libusbx] persisting LIBUSB_ERROR_NO_MEM on burst condition

2013-01-28 Thread Mohamed HAMZAOUI
Hi, I return for you for a crash problem in my soft. For remember, I'm now developping a software based on libusbx to send and receive with my CAN-USB gateway card. In my program i have a start a thread to handle event with this code : static void *event_handler_thread(void *args) { struct dtlib *l