using System.Windows.Forms;
using DevExpress.XtraBars;
using DevExpress.XtraEditors;
namespace Test
{
public class Form1 : XtraForm
{
protected override void Dispose(bool disposing)
{
if (disposing && this.components != null)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
The proitected application crashes inside OnClose event:
System.Security.VerificationException: Operation could destabilize the runtime.
at (XtraForm , Boolean )
at System.Windows.Forms.Form.WmClose(Message& m)
at DevExpress.XtraEditors.DForm.WndProc(Message& m)
at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Steps to Reproduce:
crproj:
The proitected application crashes inside OnClose event: