-
Thread Controlling (4 messages)
- Posted by: J J
- Posted on: October 20 2003 23:53 EDT
how can you control a thread, if the instance is in another class and the thread you're controlling is also in another class. the error message was notowner something(it's quite long).Threaded Messages (4)
- Exception? by Sean Sullivan on October 21 2003 01:04 EDT
- Exception? by J J on October 21 2003 03:12 EDT
-
Exception? by Gal Binyamini on October 21 2003 04:27 EDT
- Exception? by J J on October 21 2003 09:40 EDT
-
Exception? by Gal Binyamini on October 21 2003 04:27 EDT
- Exception? by J J on October 21 2003 03:12 EDT
-
Exception?[ Go to top ]
- Posted by: Sean Sullivan
- Posted on: October 21 2003 01:04 EDT
- in response to J J
Did an exception occur?
Do you have a stack trace? -
Exception?[ Go to top ]
- Posted by: J J
- Posted on: October 21 2003 03:12 EDT
- in response to Sean Sullivan
Yes an exception occured ---> NotOwner......
No I don't have the stack trace -
Exception?[ Go to top ]
- Posted by: Gal Binyamini
- Posted on: October 21 2003 04:27 EDT
- in response to J J
You didn't say exactly what operation you were trying to perform when you got this error, but by your error message I would guess you tried something like Object.wait() or Object.notify(). If that is the case, then in order for it to work you must first aquire the monitor of the specified object, as in:
synchronized(obj) {
obj.notify();
}
I couldn't quite understand from your message if this is what you are trying to do. If you elaborate on what you are trying to accomplish I could help you with your specific problem.
Gal -
Exception?[ Go to top ]
- Posted by: J J
- Posted on: October 21 2003 21:40 EDT
- in response to Gal Binyamini
thanks, it worked.