×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jan 2010
    Posts
    69

    problem about MIdleFindObserver callback

    All:
    According to Sdk, "iFinder = iContactsDb->FindAsyncL(aParsedAddress.iTelNumber.Right(11), iFieldDef, this); "
    will callback the func "IdleFindCallback();" but it was not. it seen " iContactsDb->FindAsyncL()" cause a leave,
    I was debug on the phone with Log, The log(FLogUtils::Write(_L("FFFFF")) after " iContactsDb->FindAsyncL()"
    was print But no other Log can print(seen the Progrom leaves).
    the follow is a piece of the file .h
    class CSmsReject : public CActive, public MIdleFindObserver
    {
    public : //from MIdleFindObserver
    void IdleFindCallback();
    }

    because it only can debug on the phone, how can i catch the panic when "iFinder = iContactsDb->FindAsyncL()" runs?
    the sdk was not describe the func may cause a panic!

  2. #2
    Regular Contributor
    Join Date
    Jan 2010
    Posts
    69

    Re: problem about MIdleFindObserver callback

    Quote Originally Posted by julio_chan View Post
    All:
    According to Sdk, "iFinder = iContactsDb->FindAsyncL(aParsedAddress.iTelNumber.Right(11), iFieldDef, this); "
    will callback the func "IdleFindCallback();" but it was not. it seen " iContactsDb->FindAsyncL()" cause a leave,
    I was debug on the phone with Log, The log(FLogUtils::Write(_L("FFFFF")) after " iContactsDb->FindAsyncL()"
    was print But no other Log can print(seen the Progrom leaves).
    the follow is a piece of the file .h
    class CSmsReject : public CActive, public MIdleFindObserver
    {
    public : //from MIdleFindObserver
    void IdleFindCallback();
    }

    because it only can debug on the phone, how can i catch the panic when "iFinder = iContactsDb->FindAsyncL()" runs?
    the sdk was not describe the func may cause a panic!
    i try to Add "IdleFindCallback()" after "iContactsDb->FindAsyncL()", the program enter "IdleFindCallback()"(panic occurs in this func),
    it seems like the panic is not cause by the operator " iContactsDb->FindAsyncL();", but why the callback ""iContactsDb->FindAsyncL()"
    can not launch "IdleFindCallback()" with normal framework?

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,672

    Re: problem about MIdleFindObserver callback

    Note that in Symbian C++ asynchronous callbacks are running in your own thread, they are invoked by invisible active objects.
    It means that
    - when you are using asynchronous callbacks, there has to be an Active Scheduler. It is automatically exists in GUI code, but you have not said if yours is GUI or GUI-less. "normal framework", what is that?
    - in order to have the callback invoked, your code has to return to the scheduler loop (if your code is already running in an active object - like a command handler in GUI code), or (if there is no scheduler loop is running) start a new one
    And generally you should always have the panic messages enabled: http://wiki.forum.nokia.com/index.ph...ded_panic_code

Similar Threads

  1. Problem handling sms in callback
    By DanaB in forum Symbian
    Replies: 2
    Last Post: 2010-08-30, 18:36
  2. Replies: 0
    Last Post: 2008-06-26, 04:28
  3. RTimer callback problem
    By Digish in forum Symbian
    Replies: 0
    Last Post: 2008-04-11, 07:54
  4. Replies: 0
    Last Post: 2007-11-23, 02:25
  5. Replies: 2
    Last Post: 2004-03-22, 01:42

Posting Permissions

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