×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    7

    Cancelling timer which is cancelled

    Javadoc for Timer.cancel method says: 'This method may be called repeatedly; the second and subsequent calls have no effect'. However, when cancel() is called for timer which is cancelled or not set, exception whith message 'Timer already cancelled' is raised.
    Can anybody clear, if there is a little bug in javadoc, or method behaviour was changed?

  2. #2
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Cancelling timer which is cancelled

    nothing strange there imho...
    As the documentation states after the first call the subsequent have no effect.. But just as an extra piece of info the Timer will tell you it has been cancelled allready
    It might cause some problems if it tells you so in an exception, but you could solve that by placing it in a try-catch (which, if I remember correctly, should be the case anyways) and ignoring that specific message...

Similar Threads

  1. [Announce] Timer Sample (code)
    By JOM in forum Symbian
    Replies: 5
    Last Post: 2008-06-15, 00:23
  2. Crash with multiple ao_timer
    By noreli in forum Symbian
    Replies: 2
    Last Post: 2007-11-01, 06:18
  3. inactivity timer, backlight, system dialogue windows.
    By davidmaxwaterman in forum Series 40 & S60 Platform Feedback Archive
    Replies: 0
    Last Post: 2007-05-24, 03:11
  4. Exception raised when cancelling timer
    By dave-rv in forum Symbian
    Replies: 3
    Last Post: 2007-02-23, 09:37
  5. Timer delay between playbacks???
    By lalitsharma in forum Symbian
    Replies: 3
    Last Post: 2005-09-09, 11:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×