Can you explain in more detail about the changes that you are making?
a. Are you using the existing java MediaPlayer APIs to create the
underlying player?
b. If your code does go through playerdriver, can you enable the
"debug" logs in playerdriver.cpp
c. Where did you modify the native code to add this new AO?

-Ravi

On Aug 18, 2:12 am, shadow <[email protected]> wrote:
> It seems that node' thread doesn't have scheduler, because even i if
> call OsclExecScheduler *pCurrentScheduler = OsclExecScheduler::Current
> (); i've a crash. Do you have any ideas? why scheduler isn't created?
> Thread context is valid... i've been checking it like this:
>
> fprintf( m_pLogFile, "CMyMkvNode::CMKVNode( int32 &aPriority ):
> iThreadContext = 0x%08x;\tThread's ID: %d\n", &iThreadContext,
> iThreadContext.Id() );
> fflush( m_pLogFile );
>
> the following call causes a crash too:
> fprintf( m_pLogFile, "CMyMkvNode::CMyMkvNode( int32 &aPriority ):
> ThreadHasScheduler = %d\n", iThreadContext.ThreadHasScheduler() );
> fflush( m_pLogFile );
>
> --
>  Best regards.
>
> On 18 авг, 11:36, RaviY <[email protected]> wrote:
>
> > And, how does your test code look like? Did you make sure you have
> > initialized OsclBase, Error, Memory, and Scheduler?
>
> > -Ravi
>
> > On Aug 17, 10:59 pm, shadow <[email protected]> wrote:
>
> > > Yes, other allocation of arrays or/and objects work.
>
> > > --
> > >  Best regards.
>
> > > On 18 авг, 10:48, RaviY <[email protected]> wrote:
>
> > > > Nevermind, that will probably not help. Can you get a stack trace of
> > > > your crash? Did you try allocating something else? Say, a char buffer.
> > > > Does that work?
>
> > > > -Ravi
>
> > > > On Aug 17, 10:34 pm, RaviY <[email protected]> wrote:
>
> > > > > Can you try
>
> > > > > OSCL_TRY(err,
> > > > >          m_pMyTimer = OSCL_NEW ( OsclTimer<OsclMemAllocator>,
> > > > > ("MyTimer", 1000) );
>
> > > > > -Ravi
>
> > > > > On Aug 17, 9:40 pm, shadow <[email protected]> wrote:
>
> > > > > > Hi All,
>
> > > > > >    I'm facing a problem with creating active objects inside open 
> > > > > > core
> > > > > > node, i've a crash during constructing one and on AddToScheduler()
> > > > > > call inside ThreadLogon(). Here is a code example:
>
> > > > > > class Cmynode : public OsclTimerObject,
> > > > > >                          public PVMFNodeInterface,
> > > > > >                          public OsclTimerObserver,
> > > > > >                          ........
> > > > > > {
> > > > > > public:
> > > > > > Cmynode( int32 &aPriority )
> > > > > > : OsclTimerObject(aPriority, "MyNode")
> > > > > > {
> > > > > >     int32 err;
> > > > > >     OSCL_TRY(err,
> > > > > >                       m_pMyTimer = OSCL_NEW
> > > > > > ( OsclTimer<OsclMemAllocator>,
> > > > > >                       ("MyTimer") );            // crash on
> > > > > > constructing
>
> > > > > >                // timer initialization
> > > > > >     );
>
> > > > > > }
>
> > > > > > ~Cmynode() {
> > > > > >     //destructor code}
>
> > > > > >         // PVMFNodeInterface implementation
> > > > > > public:
> > > > > >         virtual PVMFStatus ThreadLogon() {
>
> > > > > >                          if ( !IsAdded() ) {
> > > > > >                 AddToScheduler();   // crash in this call
> > > > > >                  }
>
> > > > > >                      return PVMFSuccess;
> > > > > >                 }
>
> > > > > >         virtual PVMFStatus ThreadLogoff() {
>
> > > > > >                  if ( IsAdded() ) {
>
> > > > > >                                 Cancel();
> > > > > >                         RemoveFromScheduler();
> > > > > >                  }
>
> > > > > >                      return PVMFSuccess;
> > > > > >                 }
>
> > > > > > // OsclTimerObject implementation
> > > > > > protected:
> > > > > >     virtual void Run() {
> > > > > >     }
>
> > > > > > private:
> > > > > >    OsclTimer<OsclMemAllocator> *m_pMyTimer;
>
> > > > > > };
>
> > > > > > --
> > > > > >  Best regards.- Скрыть цитируемый текст -
>
> > > > - Показать цитируемый текст -- Скрыть цитируемый текст -
>
> > - Показать цитируемый текст -
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to