The application is in break mode - Visual Studio

The application is in break mode - Visual Studio

Omar_Amen
Advocate Advocate
4,500 Views
3 Replies
Message 1 of 4

The application is in break mode - Visual Studio

Omar_Amen
Advocate
Advocate

Hi there,
I have this issue on debugging any code with Revit :'(

break.png


I spent two days searching and trying a lot of solutions in the forum and stack overflow, but unfortunately the issue still exist and can't solve it 😞
I can't debug any thing with this issue

0 Likes
Accepted solutions (1)
4,501 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni
Accepted solution

I would suggest trying to start Revit in the debugger with no add-in loaded. If it still crashes, wow. If not, continue.

 

Then, start Revit in the debugger with a minimal one-liner add-in loaded. If it still crashes, wow. If not, continue.

 

Then start Revit in the debugger with your problematic add-in loaded. If it crashes, good, you know that your add-in is causing it.

 

Once that is established, back off again. Remove all your add-in code. Ensure no crash.

 

Add code back again line by line, and debug step by step until the crash reappears.

 

Congratulations. You have found the culprit.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 4

Omar_Amen
Advocate
Advocate

Thanks Jeremy, you are my hero ❤️
It worked after removing all the loaded add-ins from the addins folder and I found that the cause of the issue is an addin I've just installed last week and it located in the Autodesk plugin folder (C:\ProgramData\Autodesk\ApplicationPlugins)
and every thing is working smoothly after removing it,
after trying tons of solutions I thought it can't be solved!
thanks Jeremy, you saved me 😅

0 Likes
Message 4 of 4

kunal.jadhavE3VCB
Observer
Observer

Hello @jeremy_tammik,

 

I am facing the same issue in my C# consle app. and I noticed the issue is in Autodesk.Navisworks.Api this API is loaded from Autodesk Manage 2021. I cannot remove it as it is required for my code. Please guide me way ahead.

My plan here to use new Autodesk API instead of ComApi.

 

Attached my code + Reference Snap Shot

Note - I am a new developer to C# and Autodesk Manage too.

 

I hope I will be able to solve this issue.

 

Thanks and best regards

 

Kunal

0 Likes