error with IRPhidget

Supporting Java SE version 7 and up
Laertes
Phidgetly
Posts: 46
Joined: Mon May 05, 2008 10:02 am

error with IRPhidget

Postby Laertes » Tue Jun 28, 2011 3:03 pm

Hi, I am getting a crash in phidget21.dll which kills the java process.
I am using the 1.0.9 webservice on windows 7.

here is the error i got from eclipse and JAD:
Exception in thread "Thread-10" java.util.ConcurrentModificationException
at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:761)
at java.util.LinkedList$ListItr.next(LinkedList.java:696)
at com.phidgets.IRPhidget.fireCode(IRPhidget.java:174)

Is this a know error, and is there a workaround?
It works fine for a while, and then I get this error. I never got it before updating to the 0615 version of the driver. But I didnt push it as hard as i do now either.

regards,

/Lars

Laertes
Phidgetly
Posts: 46
Joined: Mon May 05, 2008 10:02 am

Re: error with IRPhidget

Postby Laertes » Tue Jun 28, 2011 3:55 pm

Hi,
It looks like it might be a syncronization error, you might have to do something like :
synchronized (list) {
for (Iterator it = list.iterator(); it.hashNext(); ) {
Foo f = (Foo) it.next();
// do what you need with f
}
}
do you check the code for this?

/Lars


Return to “Java”

Who is online

Users browsing this forum: No registered users and 1 guest