View Single Post
  #3 (permalink)  
Old 09-24-2008, 11:23 PM
dewyatt dewyatt is offline
Member
 
Join Date: Sep 2008
Posts: 5
dewyatt is on a distinguished road
Quote:
Originally Posted by Norm View Post
Have you tried debugging your code? Add println() statements to trace logic flow and variable values.

For wait and notify to communicate, they must be issued against the same object. You have notify using the mythread object and wait using "this" in GifAnimator. Two different objects.
Do a search for some simple examples of wait and notify usage.
Yes, I removed all the println statements to shorten the code.
I'll add them back in and post where it hangs.

As far as wait/notify on different objects, it's actually not like that in my current code, I think I was just experimenting when confused.
Reply With Quote