×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Location
    Bangalore
    Posts
    174

    KErrOverflow after DialCancel()...?

    hi friends..
    i need your help...

    this is what i'm doing first i'l dial some number if i dont want to dial then i'm canceling the dialed call but i'm getting KErrOverflow error in RunL function why..?

    this is the fun i'm using to cancel..
    dial()
    {
    TBuf <100> newCallName;
    User::LeaveIfError(iCall.OpenNewCall(iLine, newCallName));
    iCall.Dial(iStatus,aPhoneNumber);
    SetActive();
    }

    if its dialing
    cancel()
    {
    iCall.DialCancel() ;
    iCall.Close();
    }

    anything wrong...?

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2004
    Posts
    2,015

    Re: KErrOverflow after DialCancel()...?

    I don't know if this is the problem but Dial() is an asynchronous function - which means its lifetime is independant of the lifetime of your own dial() function.
    newCallName is a local variable to the dial() function - therefore if Dial() makes use of the parameter passed to OpenNewCall(), and OpenNewCall() doesn't make a copy of that parameter, instead it sets a reference for example, then there is a problem.

    I don't however know the relation between OpenNewCall and Dial.

    You could also say what aPhoneNumber is.

Similar Threads

  1. KErrOverflow (-9) during playing a long audio with APS
    By paipeng in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2008-08-28, 18:13
  2. CParser::ParseL fails with -9 (KErrOverflow)
    By template60 in forum Symbian C++
    Replies: 8
    Last Post: 2008-06-25, 13:05
  3. Why leaves with KErrOverflow???
    By supersuperguo in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2007-10-16, 08:49
  4. RChunk::CreateLocal returns KErrOverflow
    By lenclud in forum Symbian C++
    Replies: 7
    Last Post: 2007-10-02, 10:22
  5. Replies: 1
    Last Post: 2005-06-28, 05:26

Posting Permissions

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