COM add-in causes Outlook 2007 to periodically crash where it did not in Outlook 2003

Status
Not open for further replies.
A

Anthony

I wrote a custom add-in that has been developed and successfully

deployed to customer sites for over five years. It is written using the

COM add-in designer within the Microsoft Visual Basic 6.0 IDE. It has

evolved through each iteration of Microsoft Office, each security patch

(uses Redemption) and functionality change that these have brought

about.

The add-in will work for a number of hours. After a period of inactivity

the user will click on Outlook to view a message and Outlook will crash.

Checking the Application Event viewer results in the error described

below

Faulting application OUTLOOK.EXE, version 12.0.6504.5000, time stamp

0x49e7f47e, faulting module ntdll.dll, version 6.0.6001.18000, time

stamp 0x4791a783, exception code 0xc0000374, fault offset 0x000aada3,

process id 0x27d4, application start time 0x01ca1ee27730eea6.

I have seen the article "Add-in threading issue causes Outlook to crash

or hang" but have not been able to re-create the issue in order to

uncategorically remove my add-in as the culprit. I have even removed all

but the Genuine Office Advantage add-in and my add-in and outlook still

crashes.

The add-in has worked for a long time (pre-Outlook 2007) and hasn't

changed much.

Is this the .NET add-in multi-threading issue? If so, how can I tell my

customers their Microsoft add-ins are causing Outlook to crash, not my

add-in?

What else can I try? There seems to be very little about this out there,

can anyone help?

Regards,

Anthony

*** Sent via Developersdex http://www.developersdex.com ***
 
K

Ken Slovak - [MVP - Outlook]

An addin written using VB6 isn't going to be using background threads unless

you specially create them using Win32 API calls. If you are seeing this

without any other addins running then I think you can safely assume it's

your addin that's causing the problem.

Yes, a managed code or other addin that uses a background thread to access

the Outlook object model will cause Outlook to crash or hang, and in many

cases a VB6 addin will get blamed even when innocent, due to how the stack

is being read and handled by Watson. There's nothing you can do about that

other than warn your users. But with no other addins running that's not

what's happening.

Does your addin handle NewMail() or other events on Inbox? That can possibly

cause a problem, usually a hang when typing in an email. But Outlook won't

just blow up when accessing a message.

I think your best bet is to open a support case for your addin and get an MS

escalation engineer to look at the crash dumps you collect. They will be

able to pinpoint the problem most likely.

"Anthony" <nospam@devdex.com> wrote in message

news:ewV%23sWHJKHA.1380@TK2MSFTNGP02.phx.gbl...
> I wrote a custom add-in that has been developed and successfully
> deployed to customer sites for over five years. It is written using the
> COM add-in designer within the Microsoft Visual Basic 6.0 IDE. It has
> evolved through each iteration of Microsoft Office, each security patch
> (uses Redemption) and functionality change that these have brought
> about.

> The add-in will work for a number of hours. After a period of inactivity
> the user will click on Outlook to view a message and Outlook will crash.
> Checking the Application Event viewer results in the error described
> below
> Faulting application OUTLOOK.EXE, version 12.0.6504.5000, time stamp
> 0x49e7f47e, faulting module ntdll.dll, version 6.0.6001.18000, time
> stamp 0x4791a783, exception code 0xc0000374, fault offset 0x000aada3,
> process id 0x27d4, application start time 0x01ca1ee27730eea6.

> I have seen the article "Add-in threading issue causes Outlook to crash
> or hang" but have not been able to re-create the issue in order to
> uncategorically remove my add-in as the culprit. I have even removed all
> but the Genuine Office Advantage add-in and my add-in and outlook still
> crashes.

> The add-in has worked for a long time (pre-Outlook 2007) and hasn't
> changed much.

> Is this the .NET add-in multi-threading issue? If so, how can I tell my
> customers their Microsoft add-ins are causing Outlook to crash, not my
> add-in?

> What else can I try? There seems to be very little about this out there,
> can anyone help?

> Regards,
> Anthony

> *** Sent via Developersdex http://www.developersdex.com ***
 
A

Anthony

Thankyou for your reply.

No, I do not respond to the NewMail event. Here are the events I do

respond to:

olExplorers - NewExplorer

olExplorer - Activate, BeforeFolderSwitch, Close, Deactivate,

FolderSwitch and SelectionChange events.

olItems - ItemAdd.

olInspectors - NewInspector

olInspector - Activate, Close, Deactivate.

olApplication - Quit (not NewMail).

I have a timer class (MSharedTimer.bas by Karl E. Paterson) which

refreshes the UI (due to Outlook not keeping track of the current

inspector), is this likely to cause me issues?

I _think_ I have been able to raise an MS support case, it was not easy.

Regards,

Anthony

*** Sent via Developersdex http://www.developersdex.com ***
 
K

Ken Slovak - [MVP - Outlook]

It's possible that Karl's timer class is running in a different thread, the

easiest way to see if it's causing a problem is to not use it and see if the

problem goes away.

"Anthony" <nospam@devdex.com> wrote in message

news:uz2CfdVJKHA.5956@TK2MSFTNGP03.phx.gbl...
> Thankyou for your reply.

> No, I do not respond to the NewMail event. Here are the events I do
> respond to:

> olExplorers - NewExplorer

> olExplorer - Activate, BeforeFolderSwitch, Close, Deactivate,
> FolderSwitch and SelectionChange events.

> olItems - ItemAdd.

> olInspectors - NewInspector

> olInspector - Activate, Close, Deactivate.

> olApplication - Quit (not NewMail).

> I have a timer class (MSharedTimer.bas by Karl E. Paterson) which
> refreshes the UI (due to Outlook not keeping track of the current
> inspector), is this likely to cause me issues?

> I _think_ I have been able to raise an MS support case, it was not easy.

> Regards,
> Anthony

> *** Sent via Developersdex http://www.developersdex.com ***
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
R keeping track of custom settings for com add-ins Outlook VBA and Custom Forms 1
D Why does my Outlook 2003 .Com Add-In disappears after reboot! Outlook VBA and Custom Forms 4
P getSelectedItem does not work in unmanaged Com-Add In Outlook VBA and Custom Forms 6
J Names in sent items suddenly show as Bob Smith (bobsmith@sample.com) Using Outlook 3
C WARNING - DO NOT USE AN OUTLOOK.COM ADDRESS FOR GOOGLE ACCOUNT RECOVERY EMAIL Using Outlook 10
D Outlook.com premium finally dying... what do I do with my domain? Using Outlook.com accounts in Outlook 3
G Retention Policy for Outlook.com Deleted Items folder Using Outlook 0
I Google Calendar <calendar-notification@google.com> appearing as a duplicate entry Using Outlook 2
GregS Why is Outlook 2016 mail in Outlook.com? Using Outlook 1
T upgrade from outlook.com to Outlook Using Outlook 2
Commodore Outlook (2013) issues with icloud.com mail Using Outlook 0
H Upon opening Outlook, make my popmail inbox open instead of outlook.com inbox Using Outlook 1
G <mailto:user@domain.com<mailto:user@domain.com<mailto:user@domain.com>>> Using Outlook 5
T How do I upgrade from outlook.com to Outlook? Using Outlook 5
T Many problems with outlook.com - will upgrade to Outlook soon Using Outlook 1
T I'm thinking about moving from outlook.com to the Outlook I have in my Office 365 Using Outlook 1
GregS 2016 Contact List being managed by Outlook.com? Using Outlook 1
F outlook.com Exchane Server corrupts data Since September 2019 Using Outlook.com accounts in Outlook 6
T Missing Folder in Outlook.com Using Outlook 3
M Outlook .com group does not show up in Outlook for office 365 home Using Outlook 3
dbjdbj Is it only me having a fun time with Outlook.com "beta" ? Using Outlook 3
T Need to backup outlook.com to cloud storage, without desktop software - Testing UpSafe. Are there any similar services? Using Outlook.com accounts in Outlook 8
I New Outlook.com Using Outlook 1
ChrisK2 Send email to advertise@slipstick.com fails: "The group advertising isn't set up to receive messages from..." Using Outlook 3
D Adding Enterprise Exchange Email Account to Outlook Prevents Sending via Outlook.com Account Using Outlook.com accounts in Outlook 10
F Delete/create/reset Exchange mailbox on Outlook.com Using Outlook.com accounts in Outlook 3
K Outlook.com is not showing, or finding via search, all my Contacts (People) Using Outlook 0
R PST->Outlook.com (Import vs Drag-n-Drop methods Using Outlook.com accounts in Outlook 2
D Sharing outlook.com calendars in Outlook 2016 Using Outlook 1
T outlook.com opens with "item not found" Using Outlook 1
M Can't send email in outlook.com Using Outlook 9
T BitDefender reporting outlook.com as 'insecure' Using Outlook 6
T Some of my folders in outlook.com appear to have vanished, thanks to v1803 Using Outlook 11
C Syncing on outlook.com Using Outlook 4
S Outlook.com birthdays show up 1 day late on iPhone contacts list Using Outlook.com accounts in Outlook 27
S Outlook.com cannot edit some contacts Using Outlook.com accounts in Outlook 5
B Outlook.com People Limits Using Outlook.com accounts in Outlook 11
Rupert Dragwater How to create a new email with @outlook.com Using Outlook.com accounts in Outlook 32
M Outlook.com autocomplete list invaded by strange items Using Outlook.com accounts in Outlook 7
J Outlook 2016 message content does not display - outlook.com; exchange Using Outlook.com accounts in Outlook 9
D Outlook 2016 IMAP Connection Returns All Email but outlook.com does NOT Using Outlook.com accounts in Outlook 2
M Mailbox Size Outlook.com or Outlook 2011 Using Outlook 1
A remove or turn off outlook.com contact folder from outlook 2016 Using Outlook 4
N Error 0x80090326 when trying to setup IMAP account on Outlook.com Using Outlook.com accounts in Outlook 1
C Long List Of Outlook 2016/Outlook.com Bugs // Where To Report? Using Outlook 10
M How many days are items in Recover Deleted at Outlook.com ? Using Outlook.com accounts in Outlook 4
P Outlook.com account overrules default account Using Outlook.com accounts in Outlook 8
Fozzie Bear Correct Method to set up Outlook.com accounts as Exchange Using Outlook.com accounts in Outlook 7
W Cant connect to outlook.com from outlook Using Outlook.com accounts in Outlook 2
J Outlook.com Contact Sync Issue Using Outlook.com accounts in Outlook 9

Similar threads

Top