crash when debugging and insert a block

crash when debugging and insert a block

Anonymous
Not applicable
786 Views
7 Replies
Message 1 of 8

crash when debugging and insert a block

Anonymous
Not applicable
Hello,

I have troubles debugging AutoCAD Map 3D 2008 with Visual Studio 2005. When I check "Enable unmanaged code debugging" option Visual Studio breaks whenever i use the INSERT command.

Step to reproduce:
1. Create a default c# Windows Application
2. Edit Project properties:
______Start external program: "c:\Program Files\AutoCAD Map 3D 2008\acad.exe"
______Enable unmanaged code debugging: CHECKED
3. Hit F5 ro run AutoCAD
4. Type INSERT command
5. Hit ESC to cancel command
6. Visual Studio breaks !

According to following output it is an Access Violation error. I had a look in Debug=>Exceptions menu to disable breaking on this error but I couldn't fix anything.

First-chance exception at 0x781449d1 in acad.exe: 0xC0000005: Access violation reading location 0xbaadf00d.
Unhandled exception at 0x781449d1 in acad.exe: 0xC0000005: Access violation reading location 0xbaadf00d.


I tried with AutoCAD 2007. It's working fine. I unfortunately can't try with AutoCAD 2008 (only Map i installed on my computer).

Any inputs are welcome,

Regards,
0 Likes
787 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable
Tried Acad Map2008 + VS2005, as you described. Works fine. Also tried these:

AcadMap2006+VS2005, it is OK
AcadMap2008+VS2008, it is OK

"PowerKiKi" wrote in message news:5965881@discussion.autodesk.com...
Hello,

I have troubles debugging AutoCAD Map 3D 2008 with Visual Studio 2005. When
I check "Enable unmanaged code debugging" option Visual Studio breaks
whenever i use the INSERT command.

Step to reproduce:
1. Create a default c# Windows Application
2. Edit Project properties:
______Start external program: "c:\Program Files\AutoCAD Map 3D
2008\acad.exe"
______Enable unmanaged code debugging: CHECKED
3. Hit F5 ro run AutoCAD
4. Type INSERT command
5. Hit ESC to cancel command
6. Visual Studio breaks !

According to following output it is an Access Violation error. I had a look
in Debug=>Exceptions menu to disable breaking on this error but I couldn't
fix anything.

First-chance exception at 0x781449d1 in acad.exe: 0xC0000005: Access
violation reading location 0xbaadf00d.
Unhandled exception at 0x781449d1 in acad.exe: 0xC0000005: Access violation
reading location 0xbaadf00d.


I tried with AutoCAD 2007. It's working fine. I unfortunately can't try with
AutoCAD 2008 (only Map i installed on my computer).

Any inputs are welcome,

Regards,
0 Likes
Message 3 of 8

Anonymous
Not applicable
Thanks for trying.

I actually could reproduce this on two computers with VS2005 + Map2008. So I'm surprised it's working for you. I'll investigate more as soon as I have more time. That maybe some settings somewhere or Service Pack ...
0 Likes
Message 4 of 8

Anonymous
Not applicable
I installed AutoCAD Map 3D 2009 and tried again it worked fine.

So here is summary:
Visual Studio 2005 + AutoCAD 2007: ok
Visual Studio 2005 + AutoCAD Map 3D 2006: ok
Visual Studio 2005 + AutoCAD Map 3D 2007: ok
Visual Studio 2005 + AutoCAD Map 3D 2008: FAILED !
Visual Studio 2005 + AutoCAD Map 3D 2009: ok

It looks like something's wrong with AutoCAD Map 3D 2008. I reproduced the issue on two computers. And I can't think of any "exotic" settings I may have changed.

I'll try to report this problem to ADN.
0 Likes
Message 5 of 8

Anonymous
Not applicable
so for your information:
Autodesk Developer Network's guy told me he could reproduce the bug and he forwarded to their development team.

The bad news is:
"Note however that since this issue no longer affects the current release of Map 3D, chances of a fix are somewhat slim."

He added he doesn't know of any workaround for this problem.

Looks like we're on our own... 😕
0 Likes
Message 6 of 8

Anonymous
Not applicable
Hi,

Could you confirm that debugging AutoCAD Map 3D 2008 with Visual Studio 2005 is working fine ? As ADN's guy could reproduce the bug as well, I think you may have some special settings which allow you not to suffer from that bug.

Could you give some information about your configuration ?
Like OS, others Visual Studio versions installed or other AutoCAD on the same machine and maybe a dump of Visual Studio settings ?

Thanks in advance,

Regards,
0 Likes
Message 7 of 8

Anonymous
Not applicable
I tried again, no crash. Here is what I use:

OS: VISTA Ultimate
AcadMap2008
VS2005 with SP1 and VISTA SP

I also have VS2008 Team Development edition installed in the same box. So,
the .NET is .NET2.0 SP1+.NET3.0SP1+.NET3.5

Computer:

DELL Latitude D820, Intel Core2 CPU2.16GHz, 2GB memory, GeForce Go 7400
Video 256 MB.

The testing:

1. Start VS2005
2. Selet "AutoCAD Managed C# Project", which is installed from project
wizard from ObjectARX SDK and does nothing more than automatically set
references to Acad managed API libraries.
3. Go to project property window to make sure the project's debuggibg starts
AcadMap and "Enable unmanaged code debugging" is checked (I usually do not
check this). I also tried both with working directory being set to Acad
installation folder or without
4. With only an empty command is created by the wizard, I compiled the DLL
and hit F5.
5. AutoCAD starts.
6. enter "INSERT" at command line. This brings up "INSERT" dialog.
7. Hit "Esc" key or "Cancel" button on the dialog box. the dialog box is
gone. Acad stands.

I also tried loading "NETLOAD" some assembly first, then INSERTING, Acad
lives as it should. No crash.

So, may it be the cause that I have .NET 2.0 SP1 installed (due to the
installation of VS2008, but you can have .NET 2.0 SP1 installed seperately).


"PowerKiKi" wrote in message news:5976840@discussion.autodesk.com...
Hi,

Could you confirm that debugging AutoCAD Map 3D 2008 with Visual Studio 2005
is working fine ? As ADN's guy could reproduce the bug as well, I think you
may have some special settings which allow you not to suffer from that bug.

Could you give some information about your configuration ?
Like OS, others Visual Studio versions installed or other AutoCAD on the
same machine and maybe a dump of Visual Studio settings ?

Thanks in advance,

Regards,
0 Likes
Message 8 of 8

Anonymous
Not applicable
Thanks for trying. Concerning my configuration:

Hardware: DELL Optiplex Pentium 4 CPU 2.80GHz, 2GB of RAM, ATI Radeon X300/X550/X1050 Series
OS: Windows XP SP2 english
.Net framework SDK: v1.1, v2.0
.Net framework: v1.0.3705, v1.1.4322, v2.0.50727, v2.0 SP1, v3.0 (I don't where this one come from)

I noticed in your test you use "AutoCAD Managed C# Project" instead of non-AutoCAD Windows Project. So I tried as well with "AutoCAD Managed C# Project" as well and it breaks exactly as it always does. (Note that in my original post the c# project has absoluteley no relation whatsoever with AutoCAD, it is not even executed.)

So the remaining differences between you and me could be:
- WinXP / Vista
- Visual Studio 2008 installed or not


I tried with a third computer which has VS2005 and VS2008 installed like you. It did break as well. Then I tried with Visual Studio 2008 who also breaks.

So to me it seems that Vista may be the difference which make it work for you. If anyone could confirm this with another Vista computer, that would be great.

Thanks anyway
0 Likes