c# - Why does the ItemAdd Event stop being Handled on my Sent Items folder? -


i having trouble keeping event handle alive reason.

my project outlook addin prompts user when send email. now, have event handler hooked sent items folder when sent email arrives in folder fires prompt. reason have attached sent items folder can deal email after sent.

initially worked great , put onto client machine , event didnt want fire @ all. when attached event (initially figure happening) onsend event. call singleton class attaches handle require sent items folder handle doesnt re-created multiple times. (i did have without singleton class , instead had global flag switch when handle attached, no different)

i hope making sense!

what happening though in instances first few emails respond how supposed to; ie prompt after have been sent. after stops prompt , cant figure out why.

i hopeing maybe there way can check see if event handle exists directly. other thought maybe handle have setup getting cleaned somehow?

if has suggestions me figure going on appreciate it.

classical garabe collection bug, try keep reference in code folder.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -