×

Discussion Board

Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,740

    Re: E32USER-CBase 44 panic when I try to use a CMdaAudioPlayerUtility?

    In Symbian C++ whenever an asynchronous callback method is called, that is actually invoked by an active object's RunL method. So you indeed need a running CActiveScheduler here.
    According to this older thread, http://developer.nokia.com/Community...-in-my-program the thing can work.
    So you need something like
    Code:
    CActiveScheduler* scheduler = new (ELeave) CActiveScheduler();
    CleanupStack::PushL(scheduler);
    CActiveScheduler::Install(scheduler);
    CTonePlayer *player=CTonePlayer::NewL();
    CleanupStack::PushL(player);
    player->Play(...);
    CActiveScheduler::Start();
    and assuming you have the player from #11 and modified according to #13, it should work.
    You may want to put CActiveScheduler::Stop() into MatoPlayComplete, then the scheduler will return after playing the sound.

  2. #17
    Registered User
    Join Date
    Mar 2008
    Location
    SLOVAKIA,Bratislava
    Posts
    337

    Re: E32USER-CBase 44 panic when I try to use a CMdaAudioPlayerUtility?

    Hi THANKS FOR IDEAS , it works now 70 %
    C++Beginner (MS Access/FoxPro,VisualBasic Developer) Carbide V2.7,S60 3rd MR SDK/Nokia C5.00-5mp,6120c

  3. #18
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: E32USER-CBase 44 panic when I try to use a CMdaAudioPlayerUtility?

    Quote Originally Posted by PACALA_BA View Post
    Hi THANKS FOR IDEAS , it works now 70 %
    Then you might want to debug and see why the 30% is not working, and to identify the code parts.

  4. #19
    Registered User
    Join Date
    Mar 2008
    Location
    SLOVAKIA,Bratislava
    Posts
    337

    Re: E32USER-CBase 44 panic when I try to use a CMdaAudioPlayerUtility?

    GUI.autostartAndAutoexit app works 100% with cdelayedhelloworld

    NONGUI app, tone= yes , but I need make a deep debug view...
    C++Beginner (MS Access/FoxPro,VisualBasic Developer) Carbide V2.7,S60 3rd MR SDK/Nokia C5.00-5mp,6120c

  5. #20
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: E32USER-CBase 44 panic when I try to use a CMdaAudioPlayerUtility?

    if you are having rpoblems with something still, after you debug it, you might want to desacripe a bit better on what is not working and how. Also do check which parts of your code gets executed, and whether you get any errors returned there

  6. #21
    Registered User
    Join Date
    Mar 2008
    Location
    SLOVAKIA,Bratislava
    Posts
    337

    Re: E32USER-CBase 44 panic when I try to use a CMdaAudioPlayerUtility?

    For Debugging toneplayer class in GUI.app I use app.view.screen from audiostreamexample...
    For debugging toneplayer class in NON.GUI.APP I need a pointer to main.cpp.CONSOLE...how to do it ?
    C++Beginner (MS Access/FoxPro,VisualBasic Developer) Carbide V2.7,S60 3rd MR SDK/Nokia C5.00-5mp,6120c

  7. #22
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: E32USER-CBase 44 panic when I try to use a CMdaAudioPlayerUtility?

    I would suggest simply using filebased debugging, i.e. open a file and write into it from your code.

  8. #23
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,740

    Re: E32USER-CBase 44 panic when I try to use a CMdaAudioPlayerUtility?

    You can have the CConsoleBase pointer as a global variable.
    C/C++ thing: you can "import" global variables from other .cpp files using the extern keyword.
    Code:
    // main.cpp
    CConsoleBase *CONSOLE; // outside of any function/method, put it immediately after the #include lines for example
    
    // other.cpp
    extern CConsoleBase *CONSOLE; // outside of any function/method, put it immediately after the #include lines for example

Similar Threads

  1. Panic :E32USER-CBase 64
    By AmbikaSingh in forum Symbian User Interface
    Replies: 1
    Last Post: 2011-06-28, 13:39
  2. Panic E32USER-CBase
    By elviin in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2008-09-18, 07:44
  3. E32USER-CBase 91 panic
    By erst in forum Symbian
    Replies: 0
    Last Post: 2007-07-11, 17:55
  4. PANIC E32User-CBase 69
    By paler in forum Symbian
    Replies: 1
    Last Post: 2005-09-05, 04:31
  5. e32user-cbase panic
    By stew_mclean in forum Symbian
    Replies: 6
    Last Post: 2004-07-17, 19:22

Posting Permissions

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