Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor DemiDI's Avatar
    Join Date
    Oct 2007
    Posts
    100
    I used RTimer::At() in my application, and RunL() received timer request status. But I received KErrAbort in RunL() every half an hour.
    I have read "At-Timer Issues": KErrAbort means that the timer was aborted because the system time changed. The system time can change when, for example, automatic time and date update from the network is enabled and a new time is received from network, or when changing time zone or the daylight saving setting. Also, the system time can be changed by any application at any time by using User::SetHomeTime(). In all of these cases all the active At-timers will complete immediately with KErrAbort.
    And I didn't do anything like above in my codes. I don't know why, Could anyone help me?
    Thanks!

  2. #2
    Nokia Developer Champion amitkankani's Avatar
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572
    First, which phone are you trying this on ?

    there is a setting called automatic update of time, DISABLE it and see, but i suggest this will not be a solution as you cannot ask customers to do this ...

    what is the reason for RTimer::At() usage ?
    Amit Kankani
    Nokia Developer Champion

  3. #3
    Regular Contributor DemiDI's Avatar
    Join Date
    Oct 2007
    Posts
    100
    Hello, amitkankani,

    I tried this application in N70 for S60 2nd, and the setting called automatic update of time in my phone was disabled.

    I want to realize the function that something will be done half an hour after the phone is booting, and expired-time(only minutes) in every day. I used an auto-start application, it will probably start the application with RTimer::At() two minutes after phone-booting, and RTimer is set to half an hour later, when time is expired, I set time-point to the next day. The above instance is occured...
    Thank you very much!

    Quote Originally Posted by amitkankani View Post
    First, which phone are you trying this on ?

    there is a setting called automatic update of time, DISABLE it and see, but i suggest this will not be a solution as you cannot ask customers to do this ...

    what is the reason for RTimer::At() usage ?

  4. #4
    Regular Contributor DemiDI's Avatar
    Join Date
    Oct 2007
    Posts
    100
    http://www.newlc.com/topic-5076?destination=node%2F5849
    The problem in above link is similar to mine, but it seems no one can answer it authoritily...

  5. #5
    Nokia Developer Champion amitkankani's Avatar
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572
    as i understand from the link, there is no reliable solution till date, and as the last tab said it, u need to handle KErrAbort and do a new RTimer.At every time u get KErrAbort...

    thats the only way i guess... !
    Amit Kankani
    Nokia Developer Champion

  6. #6
    Registered User BETEP.OK's Avatar
    Join Date
    Jun 2008
    Posts
    30
    I tested my programm on 5800XM and N95.
    On the 5800XM the KErrAbort happens every 5 minutes.
    On the N95 the KErrAbort happens every 30 minutes.

    Thus, this issue can be a reason of the battery discarge if you code in a RunL consumes a lot of a processor recource.

  7. #7
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,747
    It happens because you have enabled synchronizing the time on your device to Internet time or something.

  8. #8
    Nokia Developer Champion amitkankani's Avatar
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572
    yes, but that any user could enable and the RTimer Logic will anyways not work ...

    so how does one do that with time updatable from internet !
    Amit Kankani
    Nokia Developer Champion

  9. #9
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,747
    Since you should store the TTime for RTimer::At anyway, it is possible to re-issue the request, perhaps after some sanity check.

Similar Threads

  1. Problem with CAknDoubleStyleListBox with a CAknSearchField
    By jjig in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-09-17, 00:58
  2. RTimer callback problem
    By Digish in forum Symbian C++
    Replies: 0
    Last Post: 2008-04-11, 07:54
  3. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  4. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  5. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved