The message says you are trying to use the same instance of a class on two threads.
Perhaps the class is not thread safe in some way.
Can you make a new instance for each thread?
Or synchronize...