.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VS Debugging crashes AutoCAD frequently

8 REPLIES 8
Reply
Message 1 of 9
Rob.O
1093 Views, 8 Replies

VS Debugging crashes AutoCAD frequently

Hi everyone!

 

Just out of curiosity... does anyone else have a problem with AutoCAD crashing frequently when using it as the debug startup program from VS?  I would say it crashes (or locks up) 6 out of every 10 times I start debugging from VS.  The crash always occurs at the loading screen (logo screen).

 

Sometimes it will crash 3-4 times in a row before it finally loads without a crash.  This occurs with 2011 and 2012.  Not a big deal, just a minor anoyance.

 

Just wondering if anyone else has experienced this?

8 REPLIES 8
Message 2 of 9
arcticad
in reply to: Rob.O

My guess would be to change the .net target to 3.5, I've seen where 4.0 has issues.

---------------------------



(defun botsbuildbots() (botsbuildbots))
Message 3 of 9
Rob.O
in reply to: arcticad

Makes sense, but I only target .Net 3.5, so I don't think that's it.

 

I am not possitive, but itt seems like I used to have this issue on my old desktop machine (from over a year ago) as well.

Message 4 of 9
chiefbraincloud
in reply to: Rob.O

1. Check your system event logs to see if there is any useful information there about the error.

2.  try opening the task manager and watching the memory usage when you start the debug session.

3.  try running Process Monitor and filtering for process name = ACAD.  It's a pain to try and got through the thousands of lines in the log, but theoretically, you should be focused on the very end of the list.

 

for what it is worth, I have worked with VS 2005 professional and ACAD 2007, 2009, 2010, and I have been working with VS 2010 professional and ACAD 2012, and I have never had any major repeatable problem with AutoCAD hanging when I start a debug session.

 

Dave O.                                                                  Sig-Logos32.png
Message 5 of 9
Alfred.NESWADBA
in reply to: Rob.O

Hi,

 

have you installed

  • Framework-updates?
  • VS2010 SP1?
  • latest AutoCAD servicepacks?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 6 of 9
sbarlage
in reply to: Alfred.NESWADBA

With SDK files from 2012 it crashes in debug, with 2011 files not. Debugging is only working at XP 32 Bit. This is what I find out the hard way here.

 

I am using Plant 3D 2012 and VS 2010

Message 7 of 9
Alfred.NESWADBA
in reply to: sbarlage

Hi,

 

there are questions above for "servicepacks installed"? Have you installed them (FrameWork, AutoCAD, VisualStudio) or not?

 

One additional question to this sentence:

>> With SDK files from 2012

What do you mean with that? What SDK and what SDK-files do you use?

If you mean the DLL's like acDbMgd.dll, acMgd.dll, .... then try to use the ones that are stored in the AutoCAD--installation-directory and not the one from the ObjectARX-kit (what I now imagine you are speaking about).

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 8 of 9
sbarlage
in reply to: Alfred.NESWADBA

I am using files from the Object ARX SDK and from the Plant 2012 SDK on AutoCAD Plant 3D 2012 SP 1 German. All Microsoft updates and service packs are installed. VS 2010 is up to date too. .NET 4.0 or 3.5 does not matter, both are not working if the debugger is running. No problems running it outside of VS 2010.

 

If I am using the Interops from applications folder nothing is working. I have to use the files from the SDK.

Message 9 of 9
Alfred.NESWADBA
in reply to: sbarlage

Hi,

 

>> .NET 4.0 or 3.5 does not matter, both are not working if the debugger is running

What makes you thinking that dotNET-based DLL's don't need Framework while running in debug-mode?

At least Framework 4 is active when you run an AutoCAD 2012-based vertical product. You may have a switch in the config-file that enables to use Framework 3.5 but that would be a workaround that's not stable (for me), so if you use this then try to switch to 4.0.

 

>> If I am using the Interops from applications folder nothing is working

If you show one time the TLB-file to be references in a sample-project VS creates a corresponding Interop-file. I copy this created Interop-file to a folder where I have stored all my lib's and for future projects when I have to add references I point to these Interop-files.

 

BTW. if you are using a lot of COM-based libs have you set the property "Embedd...." for the reference to false? Default it's set to true and that may end in troubles.

 

Viel Erfolg, - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost