Archived:V2 Camera observer not supported in S60 3rd Edition (Known Issue)
MCameraObserver2 mixin class for Camera API clients is not supported in S60 3rd Edition.
Article Metadata
Compatibility
S60 3rd Edition, FP1
Article
Description
Onboard Camera API on S60 3rd Edition provides two versions of the camera observer interface class, MCameraObserver and MCameraObserver2.
SDK documentation on the Onboard Camera API states that the new MCameraObserver2 class should be preferred over MCameraObserver. However, MCameraObserver2 is not yet supported on S60 platform.
How to reproduce
Trying to construct a new CCamera instance:
static IMPORT_C CCamera *NewL(MCameraObserver2 &aObserver, TInt aCameraIndex, TInt aPriority);
This will not cause a leave, but the returned pointer will be NULL.
Solution
Use the MCameraObserver class with Onboard Camera API on S60 3rd Edition (3.0) and S60 3rd Edition, Feature Pack 1 devices.
Version 2 of the Onboard Camera API is supported from S60 3rd Edition, Feature Pack 2 onwards.


Thanks a lot! I had already lost a week with the bogus documentation.