So, I spent all day downloading the javax.usb packages, compiling them... then 
writing code to use them.  Now, when I run my program, the machine grinds to a 
halt!  Here's all that I've learned, and if someone could tell me what's going 
on that would be fantastic!

Latest released javax.usb code (1.0.1), compiled today on this machine.

OS: Linux localhost.localdomain 2.6.9-1.667 #1 Thu Aug 11 16:18:41 CDT 2005 
i686 athlon i386 GNU/Linux
(Fedora Core 3 - I think)

gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode)

So... my code simply goes through the usb topology, recursively printing out 
all the information for all the objects it sees.  That works fine.  When it 
sees a UsbInterface that is configured/active, it gets the in/out UsbEndpoints 
and puts them in Hashtables, with the devices vendor/product ids (concatenated 
to a string) as the key.  That way, I can just ask the hashtable for the "in" 
endpoint for device "123/456".  Which works.  Once it does that, it get's a 
particular device, claims the interface, get's the output pipe, and sends a 
string.  Then it quits.

What seems to happen is that once I've walked through the device tree, the 
whole computer slows to a crawl until the program ends.  Hooking up a remote 
debugger (Eclipse) shows a bunch of threads fired up... and the debugger even 
has trouble getting the jvm to respond because the machine is so hosed.

I tried fiddling with the settings in javax.usb.properties - setting the 
polling to true, then false, chaning the poll time... nothing affects this 
weird behvior.  JNI tracing doesn't seem to do anything, either.  (I've 
searched my whole machine for any conflicting libraries, jar files, and 
property files - it's clean).

Any ideas???

Thanks in advance!!!
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to