Author Topic: debug C# on MAP 2015 [SOLVED]  (Read 3396 times)

0 Members and 1 Guest are viewing this topic.

didier

  • Newt
  • Posts: 48
  • expatrié
debug C# on MAP 2015 [SOLVED]
« on: September 26, 2016, 03:08:56 PM »
Hello !

I am beginner in visual studio community and C# and I have a problem with debug
does anyone know how to debug a code C# working on MAP 2015 ?

gile (which is French also but good programmer) explains to me but his explanations work only on AutoCAD, with MAP it does not work

Windows 8 and MAP 3D 2015.

thank you
« Last Edit: September 29, 2016, 10:50:44 AM by didier »
eternal beginner ...
my english is not fluent ...

Jeff_M

  • King Gator
  • Posts: 4094
  • C3D user & customizer
Re: debug C# on MAP 2015
« Reply #1 on: September 26, 2016, 07:56:23 PM »
The same steps that gile gave you for Autocad should still work with Map. I followed the Autocad instructions in order to debug Civil 3D, which is built on top of Map. What problems, errors, are you getting?

didier

  • Newt
  • Posts: 48
  • expatrié
Re: debug C# on MAP 2015
« Reply #2 on: September 27, 2016, 03:48:09 AM »
Bonjour, Hello

I make exactly what gile recommend
I put the path of the EXE in the "start program"
I Build the solution whitout error
When I start (F5) Autocad makes an error message and stops

https://dl.dropboxusercontent.com/u/91165581/erreur_visual_studio.avi

some ideas ?

thank you.
eternal beginner ...
my english is not fluent ...

didier

  • Newt
  • Posts: 48
  • expatrié
Re: debug C# on MAP 2015
« Reply #3 on: September 27, 2016, 03:54:17 AM »
oops !

I forgot the end of the message in Visual Studio which I do not understand but maybe that you understand it :


The program '[9580] acad.exe: Managed (v4.0.30319)' has exited with code -529697949 (0xe06d7363) 'Microsoft C++ Exception'.
eternal beginner ...
my english is not fluent ...

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2135
  • class keyThumper<T>:ILazy<T>
Re: debug C# on MAP 2015
« Reply #4 on: September 27, 2016, 03:56:06 AM »
I saw some references to the GAC there .... are you using the COM interface ??
Can you take a snapshotof the references you are using ?

I can't actually see the error message  ... can you post it please.

Because it looks like a small project, it may help if you zip the complete solution and post it here.
... that may save some guessing games.


Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

didier

  • Newt
  • Posts: 48
  • expatrié
Re: debug C# on MAP 2015
« Reply #5 on: September 27, 2016, 05:02:56 AM »
Bonjour

I saw some references to the GAC there  I do not know what that is
are you using the COM interface ?? I do not know how to answer
I can't actually see the error message  ... can you post it please. Which message I have to post ?

The zip file is joined to the message, it is a very (very, very) simple project, I am beginner don't forget.

thank you for your interest.


eternal beginner ...
my english is not fluent ...

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: debug C# on MAP 2015
« Reply #6 on: September 27, 2016, 07:36:58 AM »
Hi,

The solution is OK, I just needed to reset the AutoCAD references to match my computer organisation and all worked fine.

The problem seems to be related to AutoCAD MAP (possibly 2015) and/or Windows 8.
Sorry, I cannot help further, I do not have AutoCAD MAP, neither Windows 8.
Speaking English as a French Frog

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: debug C# on MAP 2015
« Reply #7 on: September 27, 2016, 09:26:49 AM »
For those whom enconter the same problem, it seems to be a known issue related to AutoCAD MAP with Windows 8, 8.1 and 10 and Autodesk purposed a workaround see this topic.
Speaking English as a French Frog

didier

  • Newt
  • Posts: 48
  • expatrié
Re: debug C# on MAP 2015
« Reply #8 on: September 27, 2016, 11:30:53 AM »
Coucou, Hello

I have already thanked Gilles on the French site where we discuss
actually yes! there is a French site (hihi)
http://cadxp.com/topic/43515-debug/page__pid__249433__st__20#entry249433debug/page__pid__249433__st__20#entry249433

I thank you also for trying to help me.
This happen only with localized versions of AutoCAD Map 3D

I do not have more than to persevere

Thank you
« Last Edit: September 27, 2016, 11:36:13 AM by didier »
eternal beginner ...
my english is not fluent ...