• Post Reply Bookmark Topic Watch Topic
  • New Topic

Will a timer work again after canceling it , and called the schedule method,i get exc  RSS feed

 
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
Thank you for reading my post.
I have a timer , i cancel it once .
now i want to use it again ? should i create the timer and then use its
schedule method ? or i can use it in a cancelled timer?
I tried to use the timer without re-creatig it but it return the following exception.
The task that i want to use is the same as the task it had before cancelling.


thank you
[ October 30, 2005: Message edited by: raminaa niilian ]
 
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well the exception says it all: you cannot restart the timer after it has been cancelled. Nearly the same as Threads.

There is only one option, and that is to create a new timer and use that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!