How to override FatalError method in AutoCAD plugin

How to override FatalError method in AutoCAD plugin

Miralkong
Advocate Advocate
236 Views
0 Replies
Message 1 of 1

How to override FatalError method in AutoCAD plugin

Miralkong
Advocate
Advocate

Hi to all,

I'm working a batch process program with accoreconsole.exe. And once for a while, it crashed because of some unhandled error. I wanted to write a message to error log file when it crashed so that users could handle these files individually. After I checked the SDK file, I found that there was a FaltalError method in HostApplicationServices. And in description, it suggests that it is highly desirable for the RealDWG host application to override this method, and do whatever needs to be done fora clean and graceful shutdown, for example, allowing the user to save some portion of the work in progress andcleaning up memory allocations.

I wonder if it can be override in AutoCAD plugin so that I could pass the corrupted file name to the error log. Or is there any other way could achieve the same?

Thanks in advance.

0 Likes
237 Views
0 Replies
Replies (0)