Outlook crashed during the 'BeforeAttachmentWriteToTempFile' callback of the 'ItemEvents_10' interface

Add-in Express™ Support Service
That's what is more important than anything else

Outlook crashed during the 'BeforeAttachmentWriteToTempFile' callback of the 'ItemEvents_10' interface
 
Subscribe
tadams




Posts: 78
Joined: 2015-12-01
Hi,

We are getting reports from clients that Outlook is crashing unexpectedly and in the EventViewer they are seeing errors related to ItemEvents_10 interface.

The latest one is:

Add-in execution error. Outlook crashed during the 'BeforeAttachmentWriteToTempFile' callback of the 'ItemEvents_10' interface while calling into the 'OurAddin' add-in.

The interesting thing here is we don't do any processing in this event, we use ItemEvents but the function call for that one is empty:


    Public Overrides Sub ProcessBeforeAttachmentWriteToTempFile(ByVal Attachment As Object, ByVal E As AddinExpress.MSO.ADXCancelEventArgs)
        ' TODO: Add some code
    End Sub


We have had quite a few of these errors, other examples are:

Add-in execution error. Outlook crashed during the 'Open' callback of the 'ItemEvents_10' interface while calling into the 'OurAddin' add-in.

Add-in execution error. Outlook crashed during the 'PropertyChange' callback of the 'ItemEvents_10' interface while calling into the 'OurAddin' add-in.

Add-in execution error. Outlook crashed during the 'Open' callback of the 'ItemEvents_10' interface while calling into the 'OurAddin' add-in.


We are seeing this across Add-in Express versions 9.2.4635 to 9.4.4644.0 inclusive.

Do you know what might be causing these? How else can we debug this issue?

Thanks,
Tom
Posted 29 Aug, 2019 03:23:07 Top
Andrei Smolin


Add-in Express team


Posts: 16481
Joined: 2006-05-11
Hello Tom,

I can't remember ever seeing these messages. How do you get them?

tadams writes:
We are getting reports from clients


Clients? All of them or some of them? Can this relate to a corrupted item/store in their Outlook profile? Is this Exchange? PST? IMAP Folders?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 29 Aug, 2019 03:36:43 Top
tadams




Posts: 78
Joined: 2015-12-01
Hi Andrei,

This is from about 3-4 clients who have raised this so far. The Event is raised when Outlook crashes as a crash report in the Event Viewer -> Application, Outlook crashes without warning for the users.

Unfortunately the crash is not reproducible in our labs, nor is it easily reproducible by our clients, it seems to happen at random times, going from multiple times a day to once every few days.

Can this relate to a corrupted item/store in their Outlook profile?

How can I check to confirm this, is there a way to find out if there are corrupted items or the store is corrupted? Why might this affect that specific event only sometimes?

The clients are using Outlook with Exchange (OST files).

Thanks,
Tom
Posted 29 Aug, 2019 04:04:18 Top
tadams




Posts: 78
Joined: 2015-12-01
Hi Andrei,

As an update we are also looking into whether our clients are all using Forcepoint, it seems there is a known issue with Forcepoint causing this to happen for Outlook Add-ins:

https://www.experts-exchange.com/questions/29151089/Microsoft-Teams-add-in-fails-in-Outlook-for-Office-365.html
http://www.edugeek.net/forums/office-software/206362-outlook-crashing-across-entire-domain.html

Will keep you posted on this.

Thanks,
Tom
Posted 29 Aug, 2019 04:23:17 Top
Andrei Smolin


Add-in Express team


Posts: 16481
Joined: 2006-05-11
Thank you, Tom.

I would try to delete the OST file on an affected user as described at https://support.office.com/en-us/article/repair-outlook-data-files-pst-and-ost-25663bc3-11ec-4412-86c4-60458afc5253. This makes Outlook to download the items anew (it may take some time); this may also fix corrupted items (if any).

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 29 Aug, 2019 08:35:01 Top