Outlook crash - how to avoid

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

Outlook crash - how to avoid
 
Joeri Sebrechts




Posts: 7
Joined: 2007-07-31
I have a VCL add-in for outlook that adds a page to the appointment form (published form). On this page, when the appointment form is opened, it creates a custom control (TReservationsContainer). This control is used to display a reservation linked to the appointment.

When the user makes a change to the reservation at some point, a yes/no dialog box is shown (Windows.MessageBox). If the user presses "Save and Close" on the appointment while the dialog is shown, and then dismisses the dialog, sometimes outlook hangs. My suspicion is that this is because the TReservationsContainer control doesn't get cleaned up at the correct time (when the inspector is closed).

I've already added a sanity check that is there is no ActiveInspector no actions are done following the yes/no answer.

How to troubleshoot this issue?

The error in the windows event viewer is:
Faulting application name: OUTLOOK.EXE, version: 14.0.4760.1000, time stamp: 0x4ba8fefd
Faulting module name: MSORES.DLL, version: 14.0.4760.1000, time stamp: 0x4ba83129
Exception code: 0xc0000005
Fault offset: 0x010c01e3
Faulting process id: 0x2300
Faulting application start time: 0x01cbf0453171471a
Faulting application path: C:\Program Files (x86)\Microsoft Office\Office14\OUTLOOK.EXE
Faulting module path: C:\Program Files (x86)\Common Files\Microsoft Shared\office14\MSORES.DLL
Report Id: 823bb63f-5c38-11e0-b83a-028037ec0200
Posted 01 Apr, 2011 03:42:35 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Joeri,

From the top of my head I would suggest showing your "yes/no" dialog box modally, in this way your users will not be able to close an inspector window while your dialog is shown. Also, you can force your dialog to close when a user closes the inspector window.
Posted 01 Apr, 2011 08:23:55 Top