Looking for tips on where to even start debugging or looking at logs.
I can't remember when it started, but it has been a while, but I have 2 strange behaviors.
First, about 20% of the time I (and users of my addin) get the following flow:
1. I close Excel, the window closes, but the process doesn't close **
2. When I re-open Excel, my addin ribbon does not display at all
3. If I go to the AddIns dialog, my addin is still selected, if I unselect it and close the dialog Excel GPFs and disappears without a visible message.
4. If I restart Excel, I get the following message about my addin:
Excel is running into problems with the 'c:\program files\microsoft office\root\office16\library\rbletools\btr.extensibility.excel64.xll' add-in. If this keeps happening, disable this add-in and check for available updates. Do you want to disable it now?
5. I say no, Excel then opens and my addin is displayed and functional.
6. If I close Excel, everything shuts down fine.
** If I look in task manager after closing and Excel is still running, and I terminate the process, everything works fine the next time I open.
Secondly, when debugging, about 20% of the time (again, lol) when I close Excel to stop the debug session, Excel automatically just starts back up on its own.
I hook into the following events, but don't do anything drastic (in my opinion) :)
application.WorkbookOpen += Application_WorkbookOpen;
application.WorkbookBeforeSave += Application_WorkbookBeforeSave;
application.WorkbookAfterSave += Application_WorkbookAfterSave;
application.WorkbookActivate += Application_WorkbookActivate;
application.WorkbookDeactivate += Application_WorkbookDeactivate;
application.SheetActivate += Application_SheetActivate;
application.SheetDeactivate += Application_SheetDeactivate;
application.SheetChange += Application_SheetChange;
Obviously there is something I must be doing, but I don't know if there are some logs I can review or events I can hook into to generate some useful logs. Any tips would be greatly appreciated. Let me know if I can provide any other useful information.