Watchdog App

  • Thread starter Thread starter DG
  • Start date Start date
D

DG

Does anyone have recommendations on an Outlook error watchdog application? We
write lots of Outlook add-ins with VSTO 2005 and we need to capture the
errors reported and read into the problems.

Thank you.
 
Good programming practice would be to handle exceptions anywhere they can
occur and trap those with try...catch blocks.

You can also handle unhandled exceptions using
AppDomain.CurrentDomain.UnhandledException and adding an exception handler
for that.
 
I wish it were that easy. Unfortunately, our problems usually show when other
appliation add-ins get in the way and conflict with ours. Having a watchdog
app would nail the issue for us in seconds. Microsoft support has one that
helps nail which app has the problem and where specifically it occurs. It can
also tell the state of every context. But we believe theirs is proprietary to
Microsoft.

Thank you.
 
In that case it most likely means that you are running in a common AppDomain
with other managed code addins that aren't written very well. Each managed
code addin should run in its own AppDomain so problems with one shouldn't
affect any other.

For VSTO addins that's taken care of for you, VSTO automatically loads a
VSTO addin into its own AppDomain. For shared addins you need to use the COM
Shim Wizard to create a unique AppDomain for your addin so problems in
others won't affect yours.
 
Back
Top