Hi:
I am using the Camera example (S60_Platform_Camera_Example_with_AutoFocus_Support_v2_1_en.zip)for my application. the example runs fine on N95, but when I embed this software in my application, it gives me the following information when I try to access the camera:
unable to execute file for security reason:
this is my setting in the mmp file
TARGET OcrExample.exe
TARGETTYPE exe
UID 0x0 0xA00001F3
VENDORID 0x0
//EPOCSTACKSIZE 0x5000
//EPOCHEAPSIZE 0x5000
CAPABILITY UserEnvironment // SwEvent required to capture
// events from camera shutter key
START RESOURCE OcrExample.rss
HEADER
TARGETPATH resource\apps
END
START RESOURCE OcrExample_reg.rss
#ifdef WINSCW
TARGETPATH \private\10003a3f\apps
#else
TARGETPATH \private\10003a3f\import\apps
#endif
END
#ifdef WINSCW
LIBRARY CamAutoFocus.lib
#else
STATICLIBRARY CamAutoFocus_s.lib
#endif
LANG SC
and this is the MMP file i got from the camera example
TARGET CameraApp.exe
TARGETTYPE exe
UID 0x100039CE 0xE01FF1D8
SECUREID 0xE01FF1D8
EPOCSTACKSIZE 0x5000
VENDORID 0
CAPABILITY UserEnvironment // SwEvent required to capture
// events from camera shutter key
SOURCEPATH ..\src
SOURCE CameraAppApp.cpp
SOURCE CameraAppAppUi.cpp
SOURCE CameraAppDocument.cpp
SOURCE CameraAppBaseContainer.cpp
SOURCE CameraAppContainer.cpp
SOURCE CameraAppView.cpp
SOURCE CameraAppPortraitView.cpp
SOURCE CameraAppPortraitContainer.cpp
SOURCE CameraCaptureEngine.cpp
SOURCE CameraAppController.cpp
SOURCEPATH ..\data
START RESOURCE CameraApp.rss
HEADER
TARGETPATH \resource\apps
END // RESOURCE
START RESOURCE CameraApp_reg.rss
TARGETPATH \private\10003a3f\apps
END // RESOURCE
USERINCLUDE . ..\inc
SYSTEMINCLUDE . \epoc32\include \epoc32\include\mmf\plugin
LIBRARY euser.lib apparc.lib cone.lib eikcore.lib
LIBRARY eikcoctl.lib avkon.lib
LIBRARY fbscli.lib
LIBRARY bitgdi.lib
LIBRARY ws32.lib
LIBRARY ecam.lib
LIBRARY gdi.lib
LIBRARY hal.lib
LIBRARY imageconversion.lib
LIBRARY platformenv.lib
LIBRARY aknskins.lib
LIBRARY efsrv.lib
LIBRARY bafl.lib
LIBRARY apgrfx.lib
LIBRARY mediaclientaudio.lib
LIBRARY flogger.lib
// Autofocus extension library
#ifdef WINSCW
LIBRARY CamAutoFocus.lib
#else
STATICLIBRARY CamAutoFocus_s.lib
#endif
// End of file
the different is that in the camera example, it specifies the security id (identical to the UID3), also know that it specify the UID3 as 0xExxxxxxxx, while my application starts with 0x1xxxxxxxxxxx...is this the reason I get the security check fail?
what can I do to remove this security check? I try to apply for the Symbian signed key, but it seems to be no response
Thank you very much for your answering

Reply With Quote




