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
Not bad...? Isn't the max 1000 USB frames per second? ;) >of about 70 bytes per IRP submission. I did relatively few >control pipe submissions yet so can't say if it's leaking >too. a real leak, or just constant new()s that are eventually garbage collected? I need to put back in recycling of the LinuxRequest objects (not difficult but hadn't got to it yet). I'll check for leaks too, could be in the Linux implementation. >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. resbumit may have been nice but the implementation of it went way beyond a nightmare. I'm assuming you're using the List submission methods (I hope, as it should greatly increase performance on Linux ISO) so why don't you just check the last UsbIrp for each List, and if it's complete, resubmit the entire List, or handle it however else you like. The new API (0.10) includes a getUsbIrp field in UsbPipeDataEvent, as well as allowing user-created UsbIrps (and I'm going to put in a default implementation to extend) which you can override the complete() method. In that you can resubmit the whole batch or do whatever. >I'll try to get a real picture and see how well control >pipe behaves in more detail. great! Thanks. -- Dan Streetman [EMAIL PROTECTED] --------------------- 186,272 miles per second: It isn't just a good idea, it's the law! ------------------------------------------------------- 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