I wanted to connect the NewMailExEvent in your COMAddinClassicExample by inserting the line
_outlookApplication.NewMailExEvent += new Outlook.Application_NewMailExEventHandler(_outlookApplication_NewMailExEvent);
Every time this line is executed I get an AccessViolationException.
The EventBridgeInitialized member has the value false. I think that's the problem.
What do I have to do to solve this Probem? Can you give me an example for connecting to the NewMailExEvent?