Hello Daryl,
On Saturday, 11. July 2009 01:35:28 Daryl Lee wrote:
I am trying to use libftdi in async mode, and have a question about the
status of it, before I spend too much time wandering through the weeds.
Questions:
1. Is it well-tested?
2. Is it known to work when the device is opened with
ftdi_usb_open_desc?
Reason for asking:
I'm getting a crash in ftdi_async_complete any time I call it, directly
or indirectly, as in ftdi_usb_close(). The value of ftdi->usb_dev->fd
looks really odd. I expected something file-descriptor-ish, as a small
integer. I have a very large integer (134607408). Right now, I'm looking
for the place where that value gets set, but I thought I'd take a moment
to ask for other eyes. The crash occurs on the call to FD_SET from
inside
_usb_async_cleanup, and the documentation on FD_SET makes it look like it
wants a normal file descriptor.
I guess we (=Intra2net AG) are the only ones using this mode.
So I'd rather call it expermiental-but-works-for-us :-)
No crash known to me so far. Did you find anything out?