Solved

Outlook add-in freezing when Timer is enabled

Posted on 2007-04-02
10
405 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Author Comment

by:rkanter
Comment Utility
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 76

Expert Comment

by:David Lee
Comment Utility
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
Comment Utility
English.  Yes I am using a control.  How would I use the API?
0
 

Author Comment

by:rkanter
Comment Utility
Why do you suggest the API over the control?
0
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Get an idea of what you should include in an email disclaimer with these Top 5 email disclaimer tips.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
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 Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now