C # event handler issues

I have a handle that is triggered when the ItemAdd event fires on the Sent Items folder in Outlook. This handle prompts the user and, based on their choice, opens a custom window form to save the sent message.

Now ... what's going on ...

  • The right is displayed when an item is placed in the Sent Items folder, if you release it, it will be displayed again the next time the event is fired, etc.
  • If you accept the invitation, the window form shows and can save the email. But the next time the email is placed in the Sent Items folder, the event doesn't fire, and hence the prompt isn't even displayed!
  • if I put the same handle in Outlook. OnSend event, not in ItemAdd for the sent items folder, everything works the same, except that after the window form is loaded, the first time it will continue to load (i.e. fire and process) the next time you want.

It looks like the window shape for some reason causes the event to stop firing or the handle deletes the Sent Items folder (but only the Sent Items folder). The latter is most likely I think. I have an idea for a job, but I'm really not a fan of the job, if I can get it done.

Does anyone know what might be going on here?

Thanks so much in advance for any thoughts people may have.

Cheers, STUV

0


source to share


1 answer


I had a similar problem. It looks like garbage collection is becoming one of your variables. If you can post the code, I can help you.



0


source







All Articles