ShowModalDialog problem in Bricscad v23 using .net and vs2022

53 Views Asked by At

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 this problem?

I tried to change some parameter in the options of vs but not good results.

1

There are 1 best solutions below

0
damorcor On

I found a solution in other chat Breakpoints in custom form...

In my case I fixed it changing the variable NEXTFIBERWORLD from 1 to 0