Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DevExpress + ReferenceProxyProtection (strong mode) crashes #515

Open
vmpsoft opened this issue Oct 29, 2022 · 0 comments
Open

DevExpress + ReferenceProxyProtection (strong mode) crashes #515

vmpsoft opened this issue Oct 29, 2022 · 0 comments
Labels
potential-bug Something does not seem to be working triage This issue needs some initial analysis.

Comments

@vmpsoft
Copy link

vmpsoft commented Oct 29, 2022

  • ConfuserEx Version: 1.6.0
  • Target Framework: 4.7.2
  • Operating System: Windows 10 x64

Steps to Reproduce:

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);
		}

crproj:

 <protection id="ref proxy">
          <argument name="mode" value="strong" />
 </protection>

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)
@vmpsoft vmpsoft added potential-bug Something does not seem to be working triage This issue needs some initial analysis. labels Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
potential-bug Something does not seem to be working triage This issue needs some initial analysis.
Projects
None yet
Development

No branches or pull requests

1 participant