![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Ken,
We are trying to add these two event handlers in our outlook addin. Our addin doesnt have any UI, except for some message boxes. It traps attachment events and Send events and does some validation on attachments. We were trying to put those event handlers in ThisAddin_Startup. ThreadException handler doesnt seem to work in this. The unhandled exception handler does. Does it sound right? We also have a background processing thread that does not access any OOM stuff. How do we catch exceptions from a background thread? (we have some try..catch) Thanks Vidya "Ken Slovak - [MVP - Outlook]" wrote: I'm not sure exactly what events Kerem was referring to but I usually put one or two general event handlers like that into my code as catch-alls. One I use is AppDomain.CurrentDomain.UnhandledException(). The other if I'm doing a lot of thread manipulation is to add a System.Threading.ThreadExceptionEventHandler() to my code. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Vidya" wrote in message ... No, what is this? Where can I get it? I googled, but couldnt find anything. I have normal exception handling that .NET provides. thanks " wrote: Do you have Threading Exception Handler or Application Exception Handler installed? |
#2
|
|||
|
|||
![]()
I don't know if VSTO is preventing that or does its own thread handling
exceptions. I wouldn't worry about it at this time unless you find your existing exception handlers aren't sufficient. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Vidya" wrote in message ... Ken, We are trying to add these two event handlers in our outlook addin. Our addin doesnt have any UI, except for some message boxes. It traps attachment events and Send events and does some validation on attachments. We were trying to put those event handlers in ThisAddin_Startup. ThreadException handler doesnt seem to work in this. The unhandled exception handler does. Does it sound right? We also have a background processing thread that does not access any OOM stuff. How do we catch exceptions from a background thread? (we have some try..catch) Thanks Vidya |
#3
|
|||
|
|||
![]()
An addin gets disabled for one of 2 reasons. Either it has unhandled
exceptions, or it's running in the same AppDomain as another application that has unhandled exceptions. VSTO takes care of the AppDomain by loading your addin into its own AppDomain. The rest is your defensive programming to first prevent exceptions and then to handle any that still might arise. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Vidya" wrote in message ... We have an Outlook 2003 addin written in VSTO 2005. We deploy into HKLM so there is no manual way to disable the addin using Outlook Tools menu. In production mode, the addin still gets disabled sometimes. We have found out that one of the ways that user can disable the addin is by killing the Outlook process while it is still loading. We have implemented ways to make the addin start up faster and there is not much we can do there. Are there other ways in which the addin can be disabled? If so, how can we prevent the addin from being disabled? We implement ThisAddin_Startup and ThisAddin_Shutdown methods and these are enclosed in try..catch blocks. Thanks |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2007, Import/Export is disabled??? | Coþku Baþ | Outlook - General Queries | 2 | June 2nd 08 06:04 PM |
how do I add address books to Outlook if the function is disabled. | Stilbaai | Outlook - Using Contacts | 2 | June 19th 07 11:01 AM |
How do I enable the disabled commands in Outlook 2007? | Kenred | Outlook - Installation | 1 | December 10th 06 09:13 PM |
Video email add-in for Outlook 2003 disabled | Phoenixfif | Add-ins for Outlook | 1 | November 19th 06 07:47 PM |
Outlook add-in is constantly being disabled | [email protected] | Add-ins for Outlook | 13 | October 10th 06 05:22 PM |