Got a bit of a sticky problem. Here's the deal:
I have an exe running in the background which monitors the global inbox for new messages. When a message with a certain type of content arrives, I do some manipulation with the contents and then I want to delete the message from the inbox (using CMsvEntry::DeleteL).
Now, this all seems to work fine when I have only one or two messages in the inbox. The problems start when there are 3 or more messages of my type in the inbox.
As my app handles them one by one, and then deletes them the "X new messages" system dialog keeps popping up with each delete, and somewhere around the 3rd or 4th delete operation my app panics with KERN-EXEC 3.
Now, if I close the popups as soon as they appear (ie fast enough so that it's gone before the next delete operation) I don't get this crash, so it would seem as if the message server gets confused when a popup is being displayed for a message that has been deleted.
Does anyone have any clues on how I could get round this problem? Is there some way to suppress those popups?
Any info at all would be greatly appreciated!