I'm using RSendAs to send emails with file attachments. Everything works fine (the message is sent) until it comes to cleanup. If I try to close the RSendAsMessage (by calling RSendAsMessage::Close()), the SendAsServer crashes with a KERN-EXEC 3... Even stranger is that if I try to close the RSendAs (server session handle), the server also crashes. Let me emphasize that it is not my application that crashes but the SendAsServer. Here is the entry from epocwind.out:
Thread !SendAsServer::Main Panic KERN-EXEC 3
I got the error both on the emulator and on the device (N95).
I managed to figure out that the problem relates to the attachment. If I don't attach anything to the email, then I can close the resources after I sent it. I tried both RSendAsMessgae::AddAttachment and RSendAsMessgae::AddLinkedAttachment (and again: sending the mail with the attachment works fine, only the cleanup is problematic).
One more thing I tried is to let the RSendAs sessions remain open all the time, never closing it (yes, possible memory leak). It's fine until the app is running, but the SendAsServer crashes at the moment I exit...
So this is it. Has anybody run into something like this? Looks like a bug to me...




