AccessViolationException - me.close from ribbon button (VB and CS)

Apr 5, 2011 at 4:11 PM

When attempting to close/exit the application using me.close() on any ribbonButton, the following error occurs.  This happens in both VB and CS.  This was tested with consistent results using the sample application 03-MenuDropDown, and other projects I created.

In debug mode in Visual Studio, the error is:

AccessViolationException was unhandled

Attempted to read or write protected memory.  This is often an indication that other memory is corrupt.

 

When running the application from Windows, the error is:

_03_MenuDropDown has stopped working

-> Check online for a solution

-> Close the program

-> Debug the program

 

Coordinator
Apr 5, 2011 at 8:39 PM

Asked and answered :)

http://blogs.microsoft.co.il/blogs/arik/archive/2010/04/14/crash-while-closing-application-that-uses-windows-ribbon-framework.aspx

Apr 5, 2011 at 8:49 PM

Beautiful!

Thank you.  Sorry I missed that.