Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

ObjectArx 2019 debugging problem

zrobert
Advocate

ObjectArx 2019 debugging problem

zrobert
Advocate
Advocate

Hi;

I have a project in version 2018 and I compiled it into version 2019. Everything is ok in the release (or debug) version when it is normally loaded to Acad with the APPLOAD command. However, debugging does not work. Visual studio normally started Autocad, load application, but break points are not hit. I've created a new blank project with ObjectArx wizard 2019, compiled it and the problem is the same. Can not hit a break point. However, when compiling a project from an ObjectArx sample folder, debugging works normally!?! I try to compare this project settings, but cannot found differences (at least as far as I know).

Another thing, a project created with ObjectArx wizard, or a project from arx samples can not compile until I add this line to the project settings file.

<PropertyGroup Label="Configuration">
    <ConfigurationType>DynamicLibrary</ConfigurationType>
    <CharacterSet>Unicode</CharacterSet>
    <CLRSupport>false</CLRSupport>
    <UseOfMfc>Dynamic</UseOfMfc>
    <!-- <UseOfAtl>false</UseOfAtl> -->
    <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
<PlatformToolset>v141</PlatformToolset> </PropertyGroup>

Here is example project.

 

P.S.

I do corrections to ObjectARX wizard 2019 files as sugested Mr. Alexander Rivilis in this post.

 

Thanks;

0 Likes
Reply
Accepted solutions (1)
4,688 Views
23 Replies
Replies (23)

moogalm
Autodesk Support
Autodesk Support

Hi

I can't reproduce the problem, I have tested wizard 2019 on VS 2017

Wizard.2019.jpg

is it possible run the command, and send me out.txt ?

msbuild ArxProject1.vcxproj /t:Build /p:Configuration=debug;Platform=x64 /pp:out.txt
0 Likes

Alexander.Rivilis
Mentor
Mentor

I have not problem with debugging AutoCAD 2019:

 

 

 

Š’Ń–Š“ŠæŠ¾Š²Ń–Š“ь ŠŗŠ¾Ń€ŠøсŠ½Š°? ŠšŠ»Ń–ŠŗŠ½Ń–Ń‚ŃŒ Š½Š° "Š’ŠŸŠžŠ”ŠžŠ‘ŠŠ™ŠšŠ£" ціŠ¼ ŠæŠ¾Š²Ń–Š“Š¾Š¼Š»ŠµŠ½Š½ŃŠ¼! | 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

zrobert
Advocate
Advocate

Thanks for fast replay. Here is out.txt from previous example project.

0 Likes

moogalm
Autodesk Support
Autodesk Support

Thanks for the file.

 

You are using VS 2017 community edition, I don't have the environment at my end to test and find problem.

1) I feel the either problem is with order of property sheets, ideally explicity mentioning of this element is not required it already defined in parent props.

 

I.e  <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>

 2) I noticed  - \ObjectARX 2019\inc\rxsdk_common.props

	  <TargetMachine>MachineX86</TargetMachine>

Please replace above with following code

<!--<TargetMachine Condition="'$(Platform)'=='Win32'">MachineX86</TargetMachine>
      <TargetMachine Condition="'$(Platform)'=='x64'">MachineX64</TargetMachine>-->

3) What are errors you got ?

0 Likes

Alexander.Rivilis
Mentor
Mentor

@moogalm wrote:

Thanks for the file.

 

You are using VS 2017 community edition, I don't have the environment at my end to test and find problem.



I also using VS 2017 community edition and has not problem such as @zrobert

Š’Ń–Š“ŠæŠ¾Š²Ń–Š“ь ŠŗŠ¾Ń€ŠøсŠ½Š°? ŠšŠ»Ń–ŠŗŠ½Ń–Ń‚ŃŒ Š½Š° "Š’ŠŸŠžŠ”ŠžŠ‘ŠŠ™ŠšŠ£" ціŠ¼ ŠæŠ¾Š²Ń–Š“Š¾Š¼Š»ŠµŠ½Š½ŃŠ¼! | 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

zrobert
Advocate
Advocate

I try this .props changes, but with no success.

About "<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>", if I don't make this change, I got this error when compile: 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\x64\PlatformToolsets\v141\Toolset.targets(36,5): error MSB8036:The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution".

 

And, here is errors when start debuging proccess from VS:

exception 1exception 1exception 2exception 2exception 3exception 3

0 Likes

Alexander.Rivilis
Mentor
Mentor

@zrobert

1. I see you using not pure AutoCAD 2019 but AutoCAD Map 2019 (or AutoCAD Civil 3D 2019).

2. I see LoaderLock error: https://kishordgupta.wordpress.com/2011/02/01/c-tricks-how-to-remove-loader-lock-error-in-visual-stu...

Š’Ń–Š“ŠæŠ¾Š²Ń–Š“ь ŠŗŠ¾Ń€ŠøсŠ½Š°? ŠšŠ»Ń–ŠŗŠ½Ń–Ń‚ŃŒ Š½Š° "Š’ŠŸŠžŠ”ŠžŠ‘ŠŠ™ŠšŠ£" ціŠ¼ ŠæŠ¾Š²Ń–Š“Š¾Š¼Š»ŠµŠ½Š½ŃŠ¼! | 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

zrobert
Advocate
Advocate

Hi Aleksander;

Yes, I using Autocad Civil 3d and Map. I using this last 5 years with no problems. 

Disabling Loader lock not solve problem. I found this option in arx example project (AsdkAcUiDialogSample) and this option is checked. This project I can compile and debugging without any problems. 

I've lost a bit of nerves and ideas ... I do not have enough knowledge about c ++ compilling, settings etc ...

0 Likes

zrobert
Advocate
Advocate

And, when I load arx app in Autocad and switch to VS code editor, breag point has "!" sign and report "The breakpoint will not currently be hit. No symbols have been loaded for this document".

0 Likes

moogalm
Autodesk Support
Autodesk Support

Hi ,

 

is it ok for you to have On line screen sharing session.

let me know I will privately DM you the link.

 

India 2:00 PM IST (GMT +5:30 PM) Today.

zrobert
Advocate
Advocate

Hi;

Yes, please send me link.

0 Likes

moogalm
Autodesk Support
Autodesk Support

This is a symptom of program database is not being generated.

I have attached a project, please unzip.

Edit *.vcxproj

Find 

<ObjectARXPath>D:\ObjectARX 20$(ArxVersion)</ObjectARXPath> 

and change it to correct SDK Path

Find 

<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>  

and change it to correct Windows SDK version 

Save

Build

 

And, test if you are able to hit breakpoint.

 

 

zrobert
Advocate
Advocate

Uff....I can't compile:

1>------ Rebuild All started: Project: createTemplates, Configuration: Debug x64 ------
1>main.cpp
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(204): error C2061: syntax error: identifier 'AcColor'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(207): error C2061: syntax error: identifier 'AcColor'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(210): error C2061: syntax error: identifier 'IAcadAcCmColor'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(213): error C2061: syntax error: identifier 'IAcadAcCmColor'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(234): error C2061: syntax error: identifier 'AcShadowDisplayType'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(237): error C2061: syntax error: identifier 'AcShadowDisplayType'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(308): error C2061: syntax error: identifier 'AcExtendOption'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(317): error C2061: syntax error: identifier 'ACAD_LWEIGHT'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(320): error C2061: syntax error: identifier 'ACAD_LWEIGHT'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(324): error C2061: syntax error: identifier 'IAcadHyperlinks'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(331): error C2061: syntax error: identifier 'IAcadDictionary'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(383): error C2061: syntax error: identifier 'AcColor'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(386): error C2061: syntax error: identifier 'AcColor'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(389): error C2061: syntax error: identifier 'IAcadAcCmColor'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(392): error C2061: syntax error: identifier 'IAcadAcCmColor'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(425): error C2061: syntax error: identifier 'AcShadowDisplayType'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(428): error C2061: syntax error: identifier 'AcShadowDisplayType'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(486): error C2061: syntax error: identifier 'AcExtendOption'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(495): error C2061: syntax error: identifier 'ACAD_LWEIGHT'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(498): error C2061: syntax error: identifier 'ACAD_LWEIGHT'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(502): error C2061: syntax error: identifier 'IAcadHyperlinks'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(509): error C2061: syntax error: identifier 'IAcadDictionary'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(526): error C2061: syntax error: identifier 'AcWireframeType'
1>c:\autodesk\autodesk_objectarx_2019\inc\axboiler.h(529): error C2061: syntax error: identifier 'AcWireframeType'
1>d:\createtemplates\main.cpp(30): fatal error C1083: Cannot open type library file: 'acax22ENU.tlb': No such file or directory
1>Done building project "createTemplates.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

0 Likes

zrobert
Advocate
Advocate

Ok, I do all this, and I can debugging and hit breakpoints... All working OK in your app.

0 Likes

zrobert
Advocate
Advocate
Accepted solution

I found a solution, thank God!

 

Huge problem due to very small things.

 

I do not know the real reason because no one else complained about it, but my computer can not debug if I do not change the following settings.
 
By default, ObjectArx wizard create project with this settings:
In Configuration Properties->General->Intermediate Directory is set to $(Platform)\$(Configuration)\. With this settings I can't hit break point when debugging.
 
When I change this settings to $(SolutionDir)$(Platform)\$(Configuration)\, everything works great!
Honestly, I do not know what these setting mean and what it is, but now everything works normally. Smiley Very Happy
 
Thank Mr. Madhukar for the time spent and help.
0 Likes

TEK1
Participant
Participant

I have the same problem but I cannot find the tab you are referring to In Configuration Properties->General->Intermediate Directory is set to $(Platform)\$(Configuration)\. 

0 Likes

Alexander.Rivilis
Mentor
Mentor

2019-04-21_14-09-02.png

Š’Ń–Š“ŠæŠ¾Š²Ń–Š“ь ŠŗŠ¾Ń€ŠøсŠ½Š°? ŠšŠ»Ń–ŠŗŠ½Ń–Ń‚ŃŒ Š½Š° "Š’ŠŸŠžŠ”ŠžŠ‘ŠŠ™ŠšŠ£" ціŠ¼ ŠæŠ¾Š²Ń–Š“Š¾Š¼Š»ŠµŠ½Š½ŃŠ¼! | 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

TEK1
Participant
Participant
Thank you for that reply. I don't get that screen. This is what I get. It
is a C# project
[image: image.png]
0 Likes

TEK1
Participant
Participant

I dont get that screen.

I get only this screen

 

0 Likes