Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Outlook 2007 Outllook::ItemEvents OnWrite crashes when invoked

0 views
Skip to first unread message

Mahesh

unread,
Oct 28, 2009, 9:24:01 PM10/28/09
to
Hi Experts,

We have Outlook Addin, working fine until we decided to move to VS2008 dev
environment.

Addin listens(on Inspector object) to three Outlook::ItemEvents
OnClose(0xf004), OnWrite(0xf002), OnSend(0xf005) doing different stuffs for
different type of items.

Everything is working fine with our product built in VS6(I dont think it
should matter), after we moved to VS2008 the whenever an OnWrite events is
fired it crashes in ATL::InvokeFromFuncInfo

!ATL::IDispEventSimpleImpl<1,CInspWrapper,&_GUID_0006303a_0000_0000_c000_000000000046>::InvokeFromFuncInfo(void
(void)* pEvent=0x000004e4, ATL::_ATL_FUNC_INFO & info={...}, tagDISPPARAMS *
pdispparams=0x0013eaec, tagVARIANT * pvarResult=Unknown vt type = 200) Line
4234 + 0x1b bytes C++

This happens only for compose window of appointment item, event fires fine
if an existing appointment item is opened and closed.

I am sure, Iam making some silly mistake but unable to figure out what. I
know somebody here can point me in right direction. Been struggling with this
for few days.

BTW event fires fine with OutlookSpy (obviously).

Appreciate any help.

Thanks,


0 new messages