Windows XP SP3 x86 Rus
AutoCAD 2009 SP3 x86 Enu
.Net Framework 3.5 SP1
MS VS 2010
...
AppDomain.CurrentDomain.UnhandledException+=new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
//Test
int ggg = 4;
int fff = 5 / (4 - ggg);//Error generate.
...
void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) {
if (Drawing != null) Drawing.Editor.WriteMessage(string.Format("\n{0}: {1}\n", Resource.ErrorMessage, ((System.Exception)e.ExceptionObject).Message));
if (XmlCommonSettings != null) SendErrorMail(Resource.UnhandledException, (System.Exception) e.ExceptionObject);
}
But after an error there is no event UnhandledException. How it is possible to solve this problem?