Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / August 2003

Tip: Looking for answers? Try searching our database.

MAPI application crashes when new Hotmail message received.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike LeDuc - 28 Aug 2003 23:13 GMT
I have written an application that monitors MAPI notifications using
Advise and UnAdvise on the IMsgStore interface provided by MAPI. This
thing works great, except when receiving new emails in Outlook 2002
from a Hotmail account. Then it crashes on a call to HrGetOneProp.

It appears that this problem is related to the actual body of the
email not being brought down until you click on the email to view it.
Here is the actual call that I am making to HrGetOneProp:

hr = HrGetOneProp(lpMAPIProp, PR_MESSAGE_CLASS, &lpsPropValue);

I have verified that lpMAPIProp interface is good and supports at a
minimum the IMAPIProp interface.

Like I said earlier, this exact code has no problems on a regular
email received from an SMTP server.

I am looking for any help that anyone can provide me on this, as I
have an impending deadline for my project, and I have already spent a
lot of time trying to track this down.

Thanks,
Mike LeDuc
abc5594def - 28 Aug 2003 23:26 GMT
> I have written an application that monitors MAPI notifications using
> Advise and UnAdvise on the IMsgStore interface provided by MAPI. This
> thing works great, except when receiving new emails in Outlook 2002
> from a Hotmail account. Then it crashes on a call to HrGetOneProp.

is it crashing inside HrGetOneProp() ?

also have you tried changing HrGetOneProp() call to lpMAPIProp->GetProps()
and see if it is crashing still ?

what is the crash address and instruction ?
Mike LeDuc - 29 Aug 2003 15:40 GMT
> > I have written an application that monitors MAPI notifications using
> > Advise and UnAdvise on the IMsgStore interface provided by MAPI. This
[quoted text clipped - 7 lines]
>
> what is the crash address and instruction ?

Yes, I have tried using lpMAPIProp->GetProps(), and it also crashes.
It appears to crash in HrGetOneProp itself. I do not get a real crash
address when this crash occurs. I get the infamous WinXP GPF dialog.
From the dump information provided, I am able to determine that it is
an Access Violation that is occuring, and it looks like it is telling
me the AV is occuring at a NULL address. I have verified that I am NOT
passing in any NULL parameters, so I don't know where to go from here.

Thanks,
Mike
abc5594def - 29 Aug 2003 20:18 GMT
are you able to retrieve any other property from lpMAPIProp or call any
other method on the lpMAPIProp before the call to GetProps() ?

have you released lpMAPIProp already did not make it null elsewhere ?

how did you get this lpMAPIProp ? did you copy the pointer without
addreffing it ?

it is hard to help unless you post some code or give more details.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.