?
Solved

Outlook add-in freezing when Timer is enabled

Posted on 2007-04-02
10
Medium Priority
?
451 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
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 

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 2000 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Find out what you should include to make the best professional email signature for your organization.
In this article I discuss my selections of the Top Four free Outlook OST File Viewers available. Open, view and read even damaged OST files by using these tools. They all provide a clear preview of all data such as emails, notes, tasks, calendars, e…
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 …
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…
Suggested Courses

800 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