Kerdo Link wrote:
>
> I have a problem with libusb_interrupt_transfer under cygwin. When I
> want to read data from a USB device and there is nothing to receive, I
> get a Segmentation fault. I managed to backtrace the fault to
> hid_copy_transfer_data() in windows_usb.c, line:
> memcpy(transfer_priv->hid_dest, transfer_priv->hid_buffer+1,
> corrected_size);
>
> The problem starts in windows_usb.c from windows_handle_events() where
> GetOverlappedResult(transfer_priv->pollable_fd.handle,
> transfer_priv->pollable_fd.overlapped, &io_size, false) sets io_size
> to 0 and io_result = ERROR_OPERATION_ABORTED.
>

I'm confused by this.  If you are using the HID backend, which it seems
you are, you should never see ERROR_OPERATION_ABORTED.  The HID backend
uses CancelIo in case of a timeout, not AbortPipe.  Are you specifying a
timeout?

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to