ARX debug configuration

ARX debug configuration

DonatasAzaravicius
Advocate Advocate
1,262 Views
6 Replies
Message 1 of 7

ARX debug configuration

DonatasAzaravicius
Advocate
Advocate

Hi,

I want to start debuging my arx application, but can't find information about it or information I found don't work for me.

I have:

AutoCAD Civil 3D 2022

Visual Studio Community 2019 v16.11.11

Have installed ObjectARXWizard2022.msi and can find it in VS but it stops at Create button.

ARX-wizard.PNG

 Setting project name and pressing "Create" button button become disabled for few minutes and after few minutes can press again, but project is not created. So, can't use Wizard for setting default settings.

 

I had found this https://forums.autodesk.com/t5/objectarx/debgging-objectarx-application/td-p/6655281

and used information in it.

Loaded ARX compiled in debug mode to AutoCAD.

In Attach to Process window set "Native code" and selected acad.exe

All my breakpoints got yellow triangles saying "The breakpoint will not currently be hit. No symbols have been loaded for this document."

Can't find my arx in Modules window. I think it should be here? My commands in AutoCAD works.

I tried to copy Autodesk.arx-2022.props from Wizard install directory, but it did not helped.

Is here somewhere detailed instruction for arx project setup for debuging?

0 Likes
Accepted solutions (1)
1,263 Views
6 Replies
Replies (6)
Message 2 of 7

Alexander.Rivilis
Mentor
Mentor

Did you installed ObjectARX Wizard 2022 as Administrator with disabled UAC? If no - reinstall it.

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

0 Likes
Message 3 of 7

DonatasAzaravicius
Advocate
Advocate

I just uninstalled Wizard. Disabled UAC and installed Wizard again, but it did not helped for wizard to work.

0 Likes
Message 4 of 7

DonatasAzaravicius
Advocate
Advocate

Just tried not to attach acad.exe, but start debugging and let VS start AutoCAD. Got this error window

DonatasAzaravicius_0-1649569899326.png

 

0 Likes
Message 5 of 7

DonatasAzaravicius
Advocate
Advocate

I have enabled Microsoft Symbol Server. Restarted VS. Run debug again. Waited a long time to download and load symbols and gor Exception Thrown by acad.exe in winmain.cpp file

DonatasAzaravicius_1-1649570734590.png

 

0 Likes
Message 6 of 7

DonatasAzaravicius
Advocate
Advocate

tried to compile one of samples in ObjectArx got the same problem

no-symbols.png

0 Likes
Message 7 of 7

DonatasAzaravicius
Advocate
Advocate
Accepted solution

I have made it half work.

If I try to start from VS debug, it fails.

I made it work only if I attach acad.exe process.

 

 

The problem was order of loading. Working order is this:

1) Start AutoCAD.

2) Attach acad.exe process to Native code.

3) Load arx app to AutoCAD.

 

If I do in this order, my breakpoints start to work and I see my arx app in module window. I can see many arx files in module window, but all of them are from AutoCAD install dir. Can't find any other arx even if it have different arx file I made and loaded at AutoCAD sturtup. Can only see my arx files if I load them to AutoCAD after attaching acad.exe process.

0 Likes