02/10/2025

Xem thông báo lỗi AutoCAD khi không debug | Lỗi thoát cad | AutoCAD Error Report | AutoCAD dotNet

Ứng dụng được phát triển/Sưu tầm bởi đội ngũ AutoLISP Thật là đơn giản
   

Thông tin thêm: 👉👉👉

Lỗi thoát AutoCAD

Làm thế nào để "debug" trên máy khách?

Khi không thể debug trực tiếp trên máy khách để tìm chính xác nguyên nhân gây lỗi. Có thể sử dụng phương thưc sau để lấy thông tin lỗi.


1 Bật RepportError

Code:
Command: RepportError
Enter new value for REPORTERROR <1>: 1
Command:


Chạy lại chương trình đến lúc lỗi

2 Chọn Report Details



3 Chọn View report contents hoặc click đúp vào tệp tin có đuôi *.xml


4 Copy nội dung tệp tin *.xml hoặc gửi tệp tin đến nhà phát triển


Nội dung lỗi có thể bao gồm:
-----Current Stack:
   at acadUnhandledExceptionFilter(_EXCEPTION_POINTERS* )

   at acadUnhandledExceptionFilter(_EXCEPTION_POINTERS* )

   at Autodesk.AutoCAD.Runtime.UnhandledExceptionFilter.Filter(_EXCEPTION_POINTERS* ep)

   at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorkerWithExceptionFilter(MethodInfo mi, Object commandObject, Boolean bLispFunction)

   at QD.AddOrRemovePts.GetPTSs(List`1 _ptss)

   at QD.QDExts.DrawDims(Line ln, List`1 Layers, List`1 Layers1, String cmd)

   at QD.MyCommands.cmd()

   at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorker(MethodInfo mi, Object commandObject, Boolean bLispFunction)

   at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorkerWithExceptionFilter(MethodInfo mi, Object commandObject, Boolean bLispFunction)

   at Autodesk.AutoCAD.Runtime.PerDocumentCommandClass.Invoke(MethodInfo mi, Boolean bLispFunction)

   at Autodesk.AutoCAD.Runtime.CommandClass.CommandThunk.Invoke()


-----Last Unhandled Exception:

-----Last 3 'first chance' exceptions (may not be related to the crash if they were handled):
-----Last-0 'first chance' exception:
System.NullReferenceException: Object reference not set to an instance of an object.

   at AddOrRemovePts.GetPTS(List`1 _ptss)
-----Last-1 'first chance' exception:
System.IndexOutOfRangeException: Index was outside the bounds of the array.

   at AutoCad.Point3dExtensions.Near(Point3d p, IEnumerable`1 pts)
-----Last-2 'first chance' exception:
System.IndexOutOfRangeException: Index was outside the bounds of the array.

   at lhBasic.AutoCad.Point3dExtensions.Near(Point3d p, IEnumerable`1 pts)


Nhóm AutoCAD dotNet




---------------------------------------------------------------------------------------------
Ứng dụng được phát triển bởi đội ngũ AutoLISP Thật là đơn giản - Tác giả ứng dụng in D2P

    

Mọi thông tin xin liên hệ Fanpage AutoLISP Thật là đơn giản!
Cảm ơn bạn đã theo dõi!

Không có nhận xét nào:

Đăng nhận xét

Xem thông báo lỗi AutoCAD khi không debug | Lỗi thoát cad | AutoCAD Error Report | AutoCAD dotNet

Ứng dụng được phát triển/Sưu tầm bởi đội ngũ AutoLISP Thật là đơn giản     Thông tin thêm: 👉👉👉