×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    11

    problems reading the call-log on 7650

    this code crashes a real 7650 (v3.04, sdk 0.9).

    CActiveScheduler* sched = new CActiveScheduler;
    CActiveScheduler::Install(sched);

    I built it as an application.

    Are there some special considerations using an active object in this environment. (If i don't try to install the scheduler, the program crashes on SetActive()).

    This is my full class: (it tries to read the call-log)
    It always returns that there are 0 calls in it (which is wrong).
    (I try to install the activescheduler before calling the Test-object)).

    class Test : public CActive {
    TRequestStatus stat;
    CLogClient *cl;
    CLogViewRecent *view;
    TBool bret;
    public:
    Test() : CActive(0) {
    debug("constr\n"
    }
    void Stop() {
    Cancel();
    }
    void Start() {
    cl=CLogClient::NewL(fsSession);
    view=CLogViewRecent::NewL(*cl);
    int cnt=view->CountL();
    debug("cnt:%d\n",(void*)cnt);
    bret=view->SetRecentListL(KLogNullRecentList,stat);
    if(bret==true) debug("bret=true\n" else debug("bret=false\n"
    //Cancel();
    SetActive();
    debug("setactive done\n"
    }
    void RunL() {
    debug("in run\n"
    if(stat == KErrNone) {
    const CLogEvent& event=view->Event();
    TBuf<64>telno=event.Number();
    debugname(telno);
    debug("len:%d\n",(void*)telno.Length());
    } else {
    debug("Error setrecent:%x \n",(void*)stat.Int());
    if(bret==true) debug("bret=true\n"
    }
    }
    void ConstructL() {
    CActiveScheduler::Add(this);
    }
    void DoCancel() {
    }
    };

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    52

    RE: problems reading the call-log on 7650

    Hi,

    I'm running very similar code on the 3650 and can't seem to get any output. The code compiles and runs fine but I can't access the latest call information such as phone number and call time. Would you mind letting me know if you got this to work or can someone post some example code that works?

    The SDK documentation for the Log Engine is good but it's hard to grasp how to use the different log classes. It would be useful to see some working code.

    Best regards,
    Dennis Baldwin

  3. #3
    Registered User
    Join Date
    Nov 2003
    Posts
    4

    Code Sample

    Hi,

    I am also having a hard time figuring out how to use the CActiveScheduler class. As in your example my code crashes at when I try to cal the SetActive method. Also when I try to install a instance of CActiveScheduler my app just leaves

    Did you manage to find a solution? I would be very interested to see some working code smaple on this. Please share your experience

    Thank you!

    Cheers Severin

  4. #4
    Regular Contributor
    Join Date
    Feb 2004
    Location
    Phillippines
    Posts
    139
    Did anyone find out how to do this? I'm having problems only with the 7650 updated CLogViewEvent everytime I call RunL. I even tried declaring it inside the runl function but it hangs when i call either firstl or setfilterl. I'm not having any problems with the 3650 though... Any help? Thanks!

  5. #5
    Regular Contributor
    Join Date
    Sep 2003
    Posts
    169

    problems reading the call-log on 7650

    Hey,

    This tutorial might help you work with Active Objects: http://www.newlc.com/article.php3?id_article=326

    Regards, Aljaz

Posting Permissions

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