Solved

Outlook add-in freezing when Timer is enabled

Posted on 2007-04-02
10
442 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Outlook Free & Paid Tools
When you have clients or friends from around the world, it becomes a challenge to arrange a meeting or effectively manage your time. This is where Outlook's capability to show 2 time zones in one calendar comes in handy.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

749 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