I am trying to create an instance of a Symbian AO from inside a Qt C++ class..
and in the destructor.. i am not sure how to delete or whether not to delete the instance of the Symbian Instance..
// if (iSmsDll)
// delete iSmsDll;
// iSmsDll = NULL;
My aim is to pass a Phone Number and some Text Message to a SendL() function of the Symbian Active Object which is actually a DLL loaded in to my Qt app.. from within a function of my Qt C++ class..
My Symbian AO's SendL() prototype:
//char *iPhoneNum= "+447583411245", *iSmsText = "Hidden Message";
iSmsText.Copy(_L16("Hidden Message")); iPhoneNum.Copy(_L16("+447908786655"));
TBool retval = iSmsDll->SendL(iPhoneNum,iSmsText);
TBool SendL( const TDesC& aRecipientNumber,const TDesC& aMessageText );
My problem is I am getting "A Data exception has occured" exception when I trigger this SendSmsDll().. is this related to creating and deleting of Symbian AO from within Qt..???
and if don create an instance of the AO and don delete it's instance n use SendL() directly I am getting "Thread 0x1f1 has panicked. Category: USER; Reason: 11" error.. i guess something related to copying data in to descriptors..
Can u plz help me how to resolve these two erros..