My test application is a simple Java based media player.

What does it mean: "Did you make sure you have initialized OsclBase,
Error, Memory, and Scheduler."?
How can i be sure that is for example, Scheduler has been initialized?
can you give me some advise?

--
 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