.NET

.NET

Reply
Distinguished Contributor
wesbird
Posts: 359
Registered: ‎12-05-2003
Message 1 of 2 (437 Views)

Unhandled Exception C0000005(Access Violation Reading 0x0000) at address 886CEB5

437 Views, 1 Replies
12-06-2005 11:22 AM
Hi,
When I finish my .net application debug in AutoCAD, I got this error message:
Exception in acmgd.dll ARX Command
Unhandled Exception C0000005(Access Violation Reading 0x0000) at address 886CEB5h

What's reason it could be?


Thank you,
Merry Christmas

Wes
Vault Pro 2014, Windows 7 64 bit, AutoCAD (ACA, Map) 2014
Contributor
Khalique
Posts: 14
Registered: ‎11-14-2005
Message 2 of 2 (437 Views)

Re: Unhandled Exception C0000005(Access Violation Reading 0x0000) at address 886CEB5

12-08-2005 06:45 AM in reply to: wesbird
Most likely it is because you declared a variable and used it without instantiating it.
When C# encounters an exception, it stops at the line where exception occurred. Add a try/catch block and examine the Exception object's message property. It will tell you more about the error.
try
{
Command that caused error
}
catch(Exception ex)
{
Debug.WriteLine(ex.Message);
}

Add the following using statement if not already added.
using System.Diagnotics;

kr
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.