R
robert dugal
I have an exchange client extension in which I'm using the Outlook
Object Model to track creation and closing of Inspectors so that I can
add a button to the forms in Outlook 2000.
I open a message, reply to it, and send the reply. But I don't ever
get the close event for the reply inspector and this results in some
OOM objects not getting released and then Outlook won't completely
unload from memory. To debug this problem I disabled every piece of
code in my addin except stuff to track the inspectors and log the
events.
When the read form opens I see:
- Install() with context = EECONTEXT_READNOTEMESSAGE
- OnRead()
- OnReadComplete()
- new inspector event
- OnOpen()
- OnOpenComplete()
- inspector gets activated (dispIdMember=0xf001)
- OnSelectionChange()
When I hit the reply button I see:
- Install() with context = EECONTEXT_SENDNOTEMESSAGE
- new inspector event
- OnOpen()
- OnOpenComplete()
- the original msg's inspector gets deactivated (dispIdMember=0xf006)
- the reply's inspector gets activated (dispIdMember=0xf001)
When I hit send I see:
- OnSubmit()
- OnWrite()
- OnWriteComplete()
- OnClose()
- OnCloseComplete()
- reply's inspector gets deactivated (dispIdMember=0xf006)
- the original msg's inspector gets activated (dispIdMember=0xf001)
When I close the original message I see:
- OnClose()
- OnCloseComplete()
- OnWrite()
- OnWriteComplete()
- original msg's inspector gets deactivated (dispIdMember=0xf006)
- original msg's inspector gets closed (dispIdMember=0xf008)
But I don't ever see the reply form's Inspector get closed.
And if instead of hitting Send on the reply I close the reply then
I do see the inspector getting closed.
Anyone have any ideas why this is happening?
Object Model to track creation and closing of Inspectors so that I can
add a button to the forms in Outlook 2000.
I open a message, reply to it, and send the reply. But I don't ever
get the close event for the reply inspector and this results in some
OOM objects not getting released and then Outlook won't completely
unload from memory. To debug this problem I disabled every piece of
code in my addin except stuff to track the inspectors and log the
events.
When the read form opens I see:
- Install() with context = EECONTEXT_READNOTEMESSAGE
- OnRead()
- OnReadComplete()
- new inspector event
- OnOpen()
- OnOpenComplete()
- inspector gets activated (dispIdMember=0xf001)
- OnSelectionChange()
When I hit the reply button I see:
- Install() with context = EECONTEXT_SENDNOTEMESSAGE
- new inspector event
- OnOpen()
- OnOpenComplete()
- the original msg's inspector gets deactivated (dispIdMember=0xf006)
- the reply's inspector gets activated (dispIdMember=0xf001)
When I hit send I see:
- OnSubmit()
- OnWrite()
- OnWriteComplete()
- OnClose()
- OnCloseComplete()
- reply's inspector gets deactivated (dispIdMember=0xf006)
- the original msg's inspector gets activated (dispIdMember=0xf001)
When I close the original message I see:
- OnClose()
- OnCloseComplete()
- OnWrite()
- OnWriteComplete()
- original msg's inspector gets deactivated (dispIdMember=0xf006)
- original msg's inspector gets closed (dispIdMember=0xf008)
But I don't ever see the reply form's Inspector get closed.
And if instead of hitting Send on the reply I close the reply then
I do see the inspector getting closed.
Anyone have any ideas why this is happening?