Solved

Outlook add-in freezing when Timer is enabled

Posted on 2007-04-02
10
434 Views
Last Modified: 2012-06-27
We have an internally created add-in for Outlook 2003 that uses a timer.  For most people this is working fine.  A few users are using a third party add-in in addition to our internal one.  I have debugged our code and found that for thes users our internal add-in freezes outlook right after the Timer is enabled.  Given that I have no control over the other add-in, is there there anything I can do or change in our code to fix this?  Any ideas what the problem could be?
0
Comment
Question by:rkanter
  • 4
  • 4
10 Comments
 
LVL 76

Expert Comment

by:David Lee
ID: 18841995
What is the timer controlling?  What interval is it set for?  Could the add-in work without a timer?  What does the other add-in do?  My guess is that the timer code is firing and either taking too long to complete or creating a conflict of some sort.
0
 

Author Comment

by:rkanter
ID: 18843487
Out add-in check to the calendar for certain items every few seconds.  The other addin is part of a product called Application Xtender from EMC that allows users to send emails to a document managements system to be archived.  I tried calling them but since I aleady know the application that is causing the conflict they were not willing to help.  
I put some debug code as the first line in the timer and it never gets executed.
0
 
LVL 76

Expert Comment

by:David Lee
ID: 18847595
Let me make sure I understand.  Everything works fine until you activate the timer in your add-in.  At that point Outlook hangs even though the timer's code is never executed.  Is that right?
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:rkanter
ID: 18848358
Correct and only when the other add-in is enabled.  Also, I am not sure it is actually my code that is hanging Outlook.  The Application xtender add-in never finished loading either, as the menu option doesn't appear before Outlook freezes.  So if I disable either add-in Outlook works fine.  If I comment out the line in my add-in that enables to timer, then Outlook also loads fine.
0
 
LVL 76

Expert Comment

by:David Lee
ID: 18850248
What languageare using for the add-in?  If VB, is the timer an actual timer control?  Have you considered using the timer API instead?
0
 

Author Comment

by:rkanter
ID: 18850611
English.  Yes I am using a control.  How would I use the API?
0
 

Author Comment

by:rkanter
ID: 18850619
Why do you suggest the API over the control?
0
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 18851019
Sorry, by language I didn't mean English, French, etc.  I meant programming language.

The problem appears to be confined to using the timer.  Since the timer code never gets executed the problem appears to have one of two causes.  One, timing of any kind in an Outlook add-in is a problem.  Two, the timer control itself is the problem.  The timer API offers a way to test that theory.  If it's the latter, then using the timer API would be a way around the problem.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question