ShowModalDialog debug problem

Hi all,
I'm migrating a plugin from Autocad to Bricscad.
I'm using .net, vs2022 and Bricscad v23.

I have a command with the next code:
FrmMyForm frm = new FrmMyForm()
{
StartPosition = FormStartPosition.CenterScreen
};
DialogResult result = _ApplicationServices.Application.ShowModalDialog(frm);
Inside the form I have one button and it's working correctly...but only in release configuration.

If I try to run vs in debug mode and then I attach to the bricscad process, I can not access to the code of the event click of the button.
I always receive the same message in vs:
The application is in break mode

Any idea how to avoid thi sproblem?


Comments