hello i'm newbie in symbian,i was develop a simple applocation call quick mark and send a result to sms use carbide c++
i got many problem when i was develop use api sdk quickmark
this my code :
void CTestQuickMarkContainerView::StartQuickMark()
{
const TInt KQuickmarkUid = 0x20004FFE;
TUid id(TUid::Uid(KQuickmarkUid));
TUid msgapid(TUid::Uid( 0xE90FB761)); //Client msgapi Uid
TApaTaskList taskList(CEikonEnv::Static()->WsSession());
TApaTask task = taskList.FindApp(id);
if (task.Exists())
{
// Send a Uid to QuickMark that will callback.
//above S60 3rd Edition: require SwEvent capability.
_LIT8(params,"");
task.SendMessage(msgapid, params);
task.BringToForeground();
}
else
{
HBufC* param = HBufC::NewLC(256);
param->Des().AppendNum(msgapid.iUid);
RApaLsSession appArcSession;
// connect to AppArc server
User::LeaveIfError(appArcSession.Connect());
TThreadId idt;
appArcSession.StartDocument(*param, TUid::Uid(KQuickmarkUid), idt);
appArcSession.Close();
CleanupStack::PopAndDestroy(); // param
}
}
when i was scan this code with code scanner use carbide then i got this error message :
high: canpanic: leaving function called in non-leaving function
in this line :
HBufC* param = HBufC::NewLC(256);
and
User::LeaveIfError(appArcSession.Connect());
can anyone give me solution and sample code to solve my problem
the second problem is :
when i was ignore this error message and start to make sis and sisx file with carbide c++ use build all configurations and when i try to install at my handphone (nokia e51),i got error message "unable install" when install is working (on progressbar suddenly stop and exit and show this message)
this my pkg file :
; TestQuickMark.pkg
; This is an auto-generated PKG file by Carbide.
; This file uses variables specific to Carbide builds that will not work
; on command-line builds. If you want to use this generated PKG file from the
; command-line tools you will need to modify the variables with the appropriate
; values: $(EPOCROOT), $(PLATFORM), $(TARGET)
; Also, the resource file entries should be changed to match the language
; used in the build. For example, if building for LANGUAGE_01, change the file
; extensions .rsc to .r01.
;
;Language - standard language definitions
&EN
; standard SIS file header
#{"TestQuickMark"},(0xE353E4A8),1,0,0
;Localised Vendor name
%{"Vendor-EN"}
;Unique Vendor name
:"Vendor"
;Supports Series 60 v 3.0
[0x101F7961], 0, 0, 0, {"Series60ProductID"}
;Files to install
;You should change the source paths to match that of your environment
;<source> <destination>
"C:\Symbian\9.1\S60_3rd\Epoc32\release\winscw\udeb\TestQuickmark.exe" -"!:\sys\bin\TestQuickMark.exe"
"$(EPOCROOT)Epoc32\data\z\resource\apps\TestQuickMark.r01" -"!:\resource\apps\TestQuickMark.r01"
"$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\TestQuickMark_reg.r01" -"!:\private\10003a3f\import\apps\TestQuickMark_reg.r01"
"$(EPOCROOT)epoc32\data\z\resource\apps\TestQuickMark_aif.mif" -"!:\resource\apps\TestQuickMark_aif.mif"
"$(EPOCROOT)epoc32\data\z\resource\apps\TestQuickMark.mbm" -"!:\resource\apps\TestQuickMark.mbm"
; Add any installation notes if applicable
;"TestQuickMark.txt" -"!:\private\0xE353E4A8\TestQuickMark.txt"
one more again,i want to ask how to create a rsc file
can anyone help me to explain and give all solution about all my problem
thx before for all your answer and God bless you
note :
sory my english is not good and better :P
thx for ur answer![]()




