Cannot attach to acad.exe and set breakpoint

Cannot attach to acad.exe and set breakpoint

ranga.narasimhan
Advocate Advocate
589 Views
2 Replies
Message 1 of 3

Cannot attach to acad.exe and set breakpoint

ranga.narasimhan
Advocate
Advocate

Hi,

 

I am able to attach to acad.exe from VC++ runtime. The debugger type is set to "Native only".

 

I am able to load the ARX file.

 

But breakpoints become disabled (greyed) once acad.exe is attached.

 

I get the following message as attached. What's the issue?

 

-Thx

 

err-30-04-2021-1.png

 

 

0 Likes
590 Views
2 Replies
Replies (2)
Message 2 of 3

tbrammer
Advisor
Advisor

There are several possible reasons. Some ideas:

 

Are you debugging a debug-build that has the usual debug settings?

  • C/C++ Optimization disabled
  • Linker->Debugging->Generate Debug Info / Create PDB

Did you select the x64 configuration and NOT x86?

Sometimes the PDB is broken. Erase the PDB and rebuild. Or try a total rebuild. 

While debugging bring up the "Module" window (Ctrl-Alt-U or [Debug]->Windows->Modules from the VS menu).

Can you see your ARX in the list? The columns "Symbol status" and "Symbol file" should indicate that your PDB is loaded.

 

Have you tried to build and debug any of the ARX sample projects? Does it work?


Thomas Brammer ● Software Developer ● imos AGLinkedIn
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.

0 Likes
Message 3 of 3

ranga.narasimhan
Advocate
Advocate

Sorry for the delayed response.

 

I used ObjectARX wizard to create arx apps. Now everything works fine. Not sure though why it didn't work earlier. Should have been some compiler/linker settings mistake.

 

For now I'm good.

 

thx

 

0 Likes