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

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

1 REPLY 1
Reply
Message 1 of 2
wesbird
801 Views, 1 Reply

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

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
Windows 10 64 bit, AutoCAD (ACA, Map) 2023
1 REPLY 1
Message 2 of 2
Khalique
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

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