×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Question When executing CTelephony::DialNewCall I get KErrNoMemory

    Hello,

    did anyone experienced the same behavior when dialing a correct number CTelephony:ialNewCall? In the RunL() method I get KErrNoMemory in the iStatus member variable. Usually it is working for me, but sometimes I get this error. The application behaves well except this. I do/or did not meet any other "KErrNoMemory" issue.

    Thank you.

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

    Re: When executing CTelephony::DialNewCall I get KErrNoMemory

    you might consider free some memory while stating to call the DialNewCall()

  3. #3
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,020

    Re: When executing CTelephony::DialNewCall I get KErrNoMemory

    try giving some delay before you call DialNewCall() as : User::After(100000);

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

    Re: When executing CTelephony::DialNewCall I get KErrNoMemory

    i will not suggest that. vineet is there any reason for that ?

  5. #5
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,020

    Re: When executing CTelephony::DialNewCall I get KErrNoMemory

    yes, actully i was going through a book about symbian which stated that the GetCallInfo() method sometimes return No memory error, when dialing/incoming call & the solution stated there is that of giving a delay.Also as the poster is saying 'sometimes' he is getting the error so it might be a case & giving a delay might solve it.ALso its written in the book that its a internal defect.

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

    Re: When executing CTelephony::DialNewCall I get KErrNoMemory

    Quote Originally Posted by vineet.jain View Post
    yes, actully i was going through a book about symbian which stated that the GetCallInfo() method sometimes return No memory error, when dialing/incoming call & the solution stated there is that of giving a delay.Also as the poster is saying 'sometimes' he is getting the error so it might be a case & giving a delay might solve it.ALso its written in the book that its a internal defect.
    i have not seen this problem at any time it always not advised to use User::After() which will stop the Application Flow for the time specified. so avoid giving delay. for my reference can you also provide me the Book Name / link

  7. #7
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Re: When executing CTelephony::DialNewCall I get KErrNoMemory

    When advised by Skumar to free some memory, I was like.. eh - the solution to free some memory is obvious, but I get this error from the very first use of the object (CActive object) and I would be quite embarrassed and surprised to have a leak somewhere. There are no running (non-native) apps except my - I'm using Yukka process monitor, and it looks like there is no problem with low memory. After some more investigation I will post here why it happens. I have experienced the same problems on N95, N958gb, N96. Thank you guys. I would like also to know the book mentioned by vineet.jain.

  8. #8
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Re: When executing CTelephony::DialNewCall I get KErrNoMemory

    Code:
            iTelephony->DialNewCall(iStatus, callParamsPckg, telNumber, iCallId);
         
            User::After(1);
            
            SetActive();
    It looks like this solved the problem. Thank you Vineet and Skumar.

Similar Threads

  1. RSocket and KerrNoMemory
    By hako84 in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2009-12-03, 02:22
  2. KErrNoMemory on Nokia 5700 - Hipermidia ported App
    By vitormcruz in forum Symbian Media (Closed)
    Replies: 5
    Last Post: 2007-12-21, 02:06
  3. Executing java class from C++ code?
    By myohol in forum Symbian
    Replies: 2
    Last Post: 2005-12-05, 08:40
  4. CIntConnectionInitiator KErrNoMemory
    By neilhopcroft in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2005-04-04, 11:28
  5. destroyApp not executing fully
    By nirmeidan in forum Mobile Java General
    Replies: 2
    Last Post: 2003-12-04, 14:04

Posting Permissions

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