×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Regular Contributor
    Join Date
    Jul 2009
    Posts
    125

    Known issues with RScheduler

    Hi all,

    1)Is there any Known issues with RScheduler for scheduling GUI applications ?...
    For me its working for console application and not for GUI applications

    2)How to receive data passed to the task?
    ex:
    TRAPD(error,iScheduler.ScheduleTask( iTaskInfo, *taskdata, iItemRef.iHandle));
    how to get the taskdata when scheduled application starts?

    Regards,
    manjusg

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,957

    Re: Known issues with RScheduler

    *taskdata is an HBufC type, so you can read it in a descriptor:

    TPtr ptr = taskdata->Des();

  3. #3
    Regular Contributor
    Join Date
    Jul 2009
    Posts
    125

    Re: Known issues with RScheduler

    Thanks for the reply,
    Actually i am launching one console application from my gui application by using RScheduler..And What i did was just scheduled the console application with some data (i.e taskdata) Using RScheduler and exited the gui application. Now the console application starts exactly at the scheduled time, but i don't know how to get the data that i set when application scheduled(i.e taskdata)?.....

    Regards,
    manjusg

  4. #4
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: Known issues with RScheduler

    One obvious place to look is in the command line arguments received by the application. Have you checked that?
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  5. #5
    Regular Contributor
    Join Date
    Jul 2009
    Posts
    125

    Re: Known issues with RScheduler

    No, i have not checked.. I will check and reply..

  6. #6
    Regular Contributor
    Join Date
    Jul 2009
    Posts
    125

    Re: Known issues with RScheduler

    Quote Originally Posted by ltomuta View Post
    One obvious place to look is in the command line arguments received by the application. Have you checked that?
    i didn't get the data from the commandline arguments..Any other idea?..

    Regards,
    manjusg

  7. #7
    Regular Contributor
    Join Date
    Aug 2005
    Location
    India
    Posts
    399

    Re: Known issues with RScheduler

    You can check the task data in your console application by
    TBuf<20> args; //<20> change size according to your arguments
    User::CommandLine(args);

  8. #8
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: Known issues with RScheduler

    Quote Originally Posted by aficianado_001 View Post
    You can check the task data in your console application by
    TBuf<20> args; //<20> change size according to your arguments
    User::CommandLine(args);
    Your idea would be great, if only would not come 30 minutes after we're told that it does not work. Now, any other idea?
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  9. #9
    Regular Contributor
    Join Date
    Jul 2009
    Posts
    125

    Re: Known issues with RScheduler

    Hi,
    one thing i missed to tel is that, in the command line i am getting a file name called "Taskfile_LEGACY" which is created in separate private folder other than console and GUI application and folder name is 10005399.. This folder also contains a file named schedulesbackup.dat....
    One more thing is a separate Taskfile_LEGACY is created each time when i make a call to ScheduleTask() , ex:Taskfile[1]_LEGACY is created when i call ScheduleTask() for the second time.

    One good thing is the file contains the data which is set at the time of scheduling..But bad thing is, i couldn't successfully read the data from the Taskfile_LEGACY since it contains many NULL values and junk values.
    contents of the file is:
    "7NULNULNULDLENULNULNULNULNULNULÍçZEOTDC4NULNULNULSOHNULNUL8data to be sent NUL... "and some other junk characters also..

    When i tried to read the data from the file.. i got only value "7" but i need to get "data to be sent"....


    Regards,
    manjusg

  10. #10
    Regular Contributor
    Join Date
    Jul 2009
    Posts
    125

    Re: Known issues with RScheduler

    Hi,
    Now i am not passing parameters to console program via Rscheduler from GUI application.. Now console application launches at the scheduled time. But there is a problem with the way the scheduler behaves. Scheduler executes my console application if the local time is changed by the user.

    Ex: When i set my console program to be launched at 7:00 pm(Daily), it launched at 7.00pm. But when i changed the time to 7.05pm it again launched the application..
    How to avoid relaunching the application?....Answer Please..

    Regards,
    Manjusg

  11. #11
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Known issues with RScheduler

    you can take care this issue by passing the next sync time and checking before each time your exe gets launched.

  12. #12
    Regular Contributor
    Join Date
    Aug 2005
    Location
    India
    Posts
    399

    Re: Known issues with RScheduler

    This is logical, because the scheduled timers like At are set to stop on a specific date and time - the timer cannot be kept running anymore because the new set time may no longer be valid or desirable, so the timer passes (KErrAbort) the decision making to whoever started the timer. System time changes do not affect interval timers, because the timer can still complete on time, [n] microseconds from this time onwards.

  13. #13
    Regular Contributor
    Join Date
    Jul 2009
    Posts
    125

    Re: Known issues with RScheduler

    Quote Originally Posted by skumar_rao View Post
    you can take care this issue by passing the next sync time and checking before each time your exe gets launched.
    Thanks for your reply..
    But how to pass next sync time to console application?

    Regards.
    Manjusg

  14. #14
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Known issues with RScheduler

    you can pass it in aTaskData with RScheduler::ScheduleTask()

  15. #15
    Regular Contributor
    Join Date
    Jul 2009
    Posts
    125

    Re: Known issues with RScheduler

    Quote Originally Posted by aficianado_001 View Post
    This is logical, because the scheduled timers like At are set to stop on a specific date and time - the timer cannot be kept running anymore because the new set time may no longer be valid or desirable, so the timer passes (KErrAbort) the decision making to whoever started the timer. System time changes do not affect interval timers, because the timer can still complete on time, [n] microseconds from this time onwards.
    Thanks for the reply,
    But alarm application never executes like this. It alarms only once not every time user changes the time. To make my application like that What i need to do?..

    Regards,
    manjusg

Similar Threads

  1. Replies: 0
    Last Post: 2009-09-24, 13:30
  2. Replies: 0
    Last Post: 2009-09-11, 23:30
  3. Questions about RScheduler!
    By baihaoping in forum Symbian
    Replies: 7
    Last Post: 2008-03-14, 06:25
  4. 3gp streaming issues
    By njahan in forum Streaming and Video
    Replies: 0
    Last Post: 2006-11-02, 19:05
  5. Series 60 graphics and sound issues
    By Teh_Architect in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-08-08, 11:03

Posting Permissions

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