kern exec3 on CmmsClientMtm->SwitchCurrentEntryL() in sending mms........tried a lot

Login to reply to this topic.
Tue, 2007-12-11 14:07
Joined: 2007-11-02
Forum posts: 37

Hi,

I have tried a lot but it crashes on
iMtm->SwitchCurrentEntryL()

My code is as follows-------
----------------------------------------
void Csendmms::ConstructL()
{
iSession=CMsvSession::OpenAsyncL(*this);
CActiveScheduler::Add( this ); // Add to scheduler
}

void Csendmms::SendMMSL()
{
Cancel(); // Cancel any request, just to be sure
// - CMsvEntry accesses and acts upon a particular Message Server entry.
// - NewL() does not create a new entry, but simply a new object to access an existing entry.
// - It takes in as parameters the client's message server session,
// ID of the entry to access and initial sorting order of the children of the entry.
CMsvEntry* entry = CMsvEntry::NewL(*iSession, KMsvGlobalOutBoxIndexEntryId ,TMsvSelectionOrdering());
//CleanupStack::PushL(entry);

// Set context to the parent folder (Outbox)
iMtm->SwitchCurrentEntryL( entry->EntryId() );////////here it crashes with kern exec3
-
-
-
-
-



// Create new message in the parent folder (Outbox) and set it as the current context.
#ifdef __SERIES60_3X__ //3rd edition onwards
iMtm->CreateMessageL( iMtm->DefaultServiceL() );
#else//1st and 2nd edition
iMtm->CreateMessageL( iMmsMtm->DefaultSettingsL() );
#endif
CleanupStack::PopAndDestroy(); // entry
//iMtm->CreateMessageL(iMtm->DefaultServiceL());
iMtm->AddAddresseeL(EMsvRecipientCc,Knumber);
iMtm->SetSubjectL(KMessageSubject);

//_LIT(KMsg,"inside MMS Sender");

SetActive(); // Tell scheduler a request is active
}

Is there any alternative approach to send mms for image files!!!!!!!!!!

waiting for your reply.......


Tue, 2008-01-29 04:31
Joined: 2007-11-02
Forum posts: 37
Re: kern exec3 on CmmsClientMtm->SwitchCurrentEntryL() in sendin

solved:-
iMtm was not properly initialised......

  • Login to reply to this topic.