Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User Jeepy's Avatar
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    728
    Hi,

    I want to use the following code :

    Code:
    void CMyApp::Abcdef(TRefByValue<const TDesC> aFormat, ...) 
    {
    TBuf16<1024> sstr;
    
    VA_LIST vargs;
    VA_START(vargs, aFormat);
    
    sstr.FormatList(aFormat, vargs); 
    
    VA_END(vargs);
    
    // ....
    
    }
    but this crashes on the sstr.FormatList line !

    anybody knows why ?

    thanks in advance,
    Domi.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  2. #2
    Nokia Developer Champion kiran10182's Avatar
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,240
    Nokia Developer Wiki Moderation team

  3. #3
    Registered User Jeepy's Avatar
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    728
    of course, I know this link and the panic code !

    I receive a "KERN-EXEC 3" but I have no idea how to solve that, the function Abcdef is called correctly.

    Rgds,
    Domi.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  4. #4
    Nokia Developer Champion kiran10182's Avatar
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,240
    Quote Originally Posted by Jeepy View Post
    I receive a "KERN-EXEC 3" but I have no idea how to solve that, the function Abcdef is called correctly.

    Rgds,
    Domi.
    Ok. I just checked the code and it works fine at my side. I experimented shortening TBuf and passing long values but in that case it panicked with USER 11 as expected.

    Can you debug on which particular case it panics KERN-EXEC 3? Means, by passing some specific data?
    Nokia Developer Wiki Moderation team

  5. #5
    Registered User Jeepy's Avatar
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    728
    Thank you fro trying to help me Kiran

    here is how I call this function :

    Code:
    void CMyApp::Tst() 
    {
    TBuf<100> name;
    TInt age;
    name.Copy( _L("Domi"));
    age = 45; // everybody knows my age now .... :-)
    Abcdef( _L("name : %S age : %d yo"), name, age );
    }
    I'm running under SDK 3rd ed (9.1)

    Rgds,
    Domi.
    Last edited by Jeepy; 2009-10-08 at 19:43.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  6. #6
    Nokia Developer Champion kiran10182's Avatar
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,240
    Quote Originally Posted by Jeepy View Post
    Thank you fro trying to help me Kiran

    here is how I call this function :

    Code:
    void CMyApp::Tst() 
    {
    TBuf<100> name;
    TInt age;
    name.Copy( _L("Domi"));
    age = 45; // everybody knows my age now .... :-)
    Abcdef( _L("name : %S age : %d yo"), name, age );
    }
    This will solve your problem:
    Code:
    Abcdef( _L("name : %S age : %d yo"), &name, age );
    Nokia Developer Wiki Moderation team

  7. #7
    Registered User Jeepy's Avatar
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    728
    thanks, thanks & thanks Kiran !!!

    this works fine now, this was very stupid from myself !!!!! ...

    kindly,

    Domi.
    Last edited by Jeepy; 2009-10-09 at 08:38.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

Similar Threads

  1. N80: MIDlet crashes after recording short audio segments for 7-20 minutes
    By sivan.toledo@gmail.com in forum Mobile Java Media (Graphics & Sounds)
    Replies: 10
    Last Post: 2010-12-29, 15:20
  2. Autostart application crashes
    By Digish in forum Symbian C++
    Replies: 7
    Last Post: 2008-08-09, 10:21
  3. Replies: 19
    Last Post: 2007-11-26, 13:05
  4. SMS messaging app crashes after receiving second message. Plz Help!!
    By stephenallan in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-02-09, 12:49
  5. Program crashes after some time: KERN-EXEC 3
    By slagoz in forum Mobile Java General
    Replies: 0
    Last Post: 2004-09-15, 15: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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved