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