Author Topic: How to debug? (problems with debugging)  (Read 2836 times)

0 Members and 1 Guest are viewing this topic.

teslaxx

  • Guest
How to debug? (problems with debugging)
« on: January 14, 2011, 03:35:55 AM »
When I start the Visual Studio in debug mode, I can't load my dll in Autocad enviroment. When I enter the command name in the command line, I receive "Unknown command "MyCommand"."
When I load the dll, without being in the debug mode, all goes smoothly. :)

I'm using VS 2008 and Autocad 2011.

Any tips?

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: How to debug? (problems with debugging)
« Reply #1 on: January 14, 2011, 04:16:08 AM »

What do you mean by
Quote
I can't load my dll in Autocad enviroment.

??

Does it error ?
How are you loading the debug DLL ??
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

teslaxx

  • Guest
Re: How to debug? (problems with debugging)
« Reply #2 on: January 14, 2011, 04:35:41 AM »
With netload command. I don't receive any error when I select the dll file.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: How to debug? (problems with debugging)
« Reply #3 on: January 14, 2011, 04:37:02 AM »

How long is a piece of string ??
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

teslaxx

  • Guest
Re: How to debug? (problems with debugging)
« Reply #4 on: January 14, 2011, 04:43:35 AM »
How long the name of the command is? "km2"

teslaxx

  • Guest
Re: How to debug? (problems with debugging)
« Reply #5 on: January 14, 2011, 06:15:16 AM »
Fix it!
Link: http://forums.autodesk.com/t5/NET/Debug-problems/m-p/2640779
Quote
In your project references, make sure the CopyLocal property for acmdg.dll and acdbmgd.dll, and any other Autodesk-supplied assemblies, are all set to false.

I don't know how this thing happen, because this is the first thing I do, after I add the Autocad references.

mohnston

  • Bull Frog
  • Posts: 305
  • CAD Programmer
Re: How to debug? (problems with debugging)
« Reply #6 on: January 14, 2011, 12:57:01 PM »
It's amazing what you can do when you don't know what you can't do.
CAD Programming Solutions