What could the ERROR be

I have created a outlook com addin using VSTO that reside in outlook. The plugin is basically displaying a msg to the user that a new mail has arrive and what is the content.

The plugin run fine when using pop account. The problem arise when the user is connected to the Exchange Server. When the event kick in on new mail arrive, the outlook would crash and thus causing the outlook to terminate.


What could be done to resolve this issue.. and what are the possible cause of this


Answer this question

What could the ERROR be

  • s_sd

    I disable off the threading parts and the outlook did not crash which was a good news but now my current problem is that my specific task did not trigger at all


  • Checker_Mac_Rohrle

    The error message is quite unsure where it crash



  • Daniel de Lima

    You can wrap potential problem code with try-catch and log exceptions to log file or event log. Until you locate in your code where is problem may be - no specific help can be made, just guess.

  • Nate_NC

    Can you post some parts of your code to see where the problem may be

    Can you localize code that have problem I mean try-catch to show exceptions that happens or use debugger to catch place where problem occurs.


  • kramed

    I'll try and look into this but I think that you would find more helpful information at the outlook forums. This seems to not be a VSTO specific issue.

    http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.outlook.vba&lang=en&cr=US



  • victorj

    I'm not sure, but strange crashes can be a result of bad multithreading. POP accounts may work faster, but I heard that Exchange accounts work much slower. This may be a problem.

    Anyway, you will find better help from other people if you post here some part of your code that crashes.



  • Jim Lux

    What kind of mulitthreading you refering too

    I have try the plugin on pop accound which work fine.

  • rstuven

    Hi!

    Are you sure there is no multithreading problems there



  • What could the ERROR be