A
Arcady
Hi everyone,
I maintain an addin that listens to Inspector events.
When I receive the Close event, I disconnect from inspector events interface
and release all the references to the inspector (otherwise it will stay
alive).
Recently, I've encountered a scenario when the Close event is fired when the
inspector is not being actually closed:
1. Set Outlook to spell check each sent message(
Tools --> Options --> Spelling, check "Always check spelling before sending")
2. Set the message editor to outlook editor (not word)
3. Compose a new message and write some gibberish in the body
4. click "send"
5. When the spell checker pops-up, click cancel.
6. outlook will ask whether you like to send the message anyway - click no.
when you click "no", the close event will be fired.
After you perform these steps, many addins will stop working for the
inspector (Outlook Spy is one of them).
Probably because the addins release their reference to the inspector and
disconnect the events.
I have checked it with Outlook 2003 SP2.
Do you have any idea how to overcome this problem ? How to identify this
situation ?
When is the right time to release the inspector if not in Close event ?
Thank you in advance
for your suggestions.
Arcady.
I maintain an addin that listens to Inspector events.
When I receive the Close event, I disconnect from inspector events interface
and release all the references to the inspector (otherwise it will stay
alive).
Recently, I've encountered a scenario when the Close event is fired when the
inspector is not being actually closed:
1. Set Outlook to spell check each sent message(
Tools --> Options --> Spelling, check "Always check spelling before sending")
2. Set the message editor to outlook editor (not word)
3. Compose a new message and write some gibberish in the body
4. click "send"
5. When the spell checker pops-up, click cancel.
6. outlook will ask whether you like to send the message anyway - click no.
when you click "no", the close event will be fired.
After you perform these steps, many addins will stop working for the
inspector (Outlook Spy is one of them).
Probably because the addins release their reference to the inspector and
disconnect the events.
I have checked it with Outlook 2003 SP2.
Do you have any idea how to overcome this problem ? How to identify this
situation ?
When is the right time to release the inspector if not in Close event ?
Thank you in advance
for your suggestions.
Arcady.