We have an Excel ribbon add-in which is using the .NET 4.0 version of FirstFloor.ModernUI. When 64 bit Excel 2010/2013 closes and a FirstFloor.ModernUI window has been shown, a crash dialog appears. Hitting the following code is sufficient to trigger the
public void buttonTest_Click(IRibbonControl control)
ModernWindow foo = new ModernWindow();
// Crash happens later, when Excel is closing
The crash itself is of the form:
Unhandled exception at 0x000007FEFD81940D (KernelBase.dll) in EXCEL.EXE: 0xC000041D: An unhandled exception was encountered during a user callback.
with a call stack of:
I have not yet checked to see if the same crash happens with the .NET 4.5 version, but will follow up once I do.
This smells like a callback was registered somewhere but never unregistered. Has anyone seen this before or figured out a workaround?