×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    730

    CActiveScheduler & CAknViewAppUi (Series 60)

    Hi,

    I have an application (based on CAknAppUi) which uses AO and CActiveScheduler; all works fine.

    but if I use my 'package' of classes using AO in another application based on CAknViewAppUi, it seems that the ActiveScheduler won't work !!; the app fails to execute CActiveScheduler::Start() and forgets the rest of the code.

    Is CActiveScheduler activated with CAknViewAppUi or do I need to do something else ?

    Thanks for any answer,
    Domi.
    d.hugo@sage.be

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166
    Hi Dominic

    are you using the AO inside your CAknViewAppUi class ?

    In my opinion it would be better to always have own class for all AO's and have callback functions to inform the owning class.

    Basically then you don't need to worry about the differencies between base class implementations as well your solution could be more easily used in other projects, Anyway just my opinion.

    yucca

  3. #3
    Registered User
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    730
    Hi Yucca (thanks for your help like usual ...)

    NO ! the CAknViewAppUI class is, of course, the base class.

    I have try to use the object derive from CActive either in one of the containers or in its view class with the same result ! (i.e. the CActiveScheduler won't start !)

    my container is construct like that :

    class CFExplorerBrowserContainer : public CCoeControl, MCoeControlObserver, MEikListBoxObserver, MyNotifier

    and its view class :

    class CFExplorerBrowserView : public CAknView

    the container contains the object constructed on the class derived from CActive.

    the base clas (AppUi) is constructed like that :
    class CFExplorerAppUi ublic CAknViewAppUi

    Is there any way or debug function to "internally" monitor the scheduler ?

    Thanks for any idea ....
    Domi.
    d.hugo@sage.be

Posting Permissions

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