On Sun, 3 Nov 2002, Boris Dainson wrote: > I got an iso pipe running on a video capture device, > haven't seen the actual picture yet... It receives around > 960 USB frames per second (not bad) but there a memory leak > of about 70 bytes per IRP submission. I did relatively few > control pipe submissions yet so can't say if it's leaking > too. > > There is no way to set automatic resubmission in this API > so whenever I get a data event on a listener I got to check > all IRPs that were submitted to the iso pipe if they is a > completed one to submit it again. Older API with > setResubmit(true) looked better.
How about using a map with the byte[] as a key and the Irp as the value. Then it should be easy to lookup the Irp when you get the byte[] in the event. > I'll try to get a real picture and see how well control > pipe behaves in more detail. I donloaded 0.9.2 from http://sourceforge.net/projects/javax-usb but I can't get get my old program to work. The following fails: StandardOperations operations = device.getStandardOperations(); operations.setInterface((short)0x00, (short)0x01); // Alternate setting (The setInterface)... And if I don't set that I can't manage to get the interface I want. Do I need the latest from CVS? Boris, how did you get around this? //Roger ------------------------------------------------------- This SF.net email is sponsored by: ApacheCon, November 18-21 in Las Vegas (supported by COMDEX), the only Apache event to be fully supported by the ASF. http://www.apachecon.com _______________________________________________ javax-usb-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel