Solved

Outlook add-in freezing when Timer is enabled

Posted on 2007-04-02
10
445 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
In this step by step procedure, you will come to know the details of creating an Outlook meeting in 2007, 2010, 2013 & 2016.
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

726 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