Share

AcDbHostApplicationServices::fatalError

C++

virtual ACDBCORE2D_PORT void fatalError(
    const ACHAR * format, 
    ...
);

Description

The database calls fatalError() when it encounters a fatal error. There is a default implementation that will put the string into the acdb.err error file, and call exit(0) to terminate your application.

It is highly desirable for the RealDWG host application to override this method, and do whatever needs to be done for a clean and graceful shutdown. For example, allowing the user to save some portion of the work in progress, cleaning up memory allocations, and so on are all things that should be done upon a fatal error.

Parameters

Parameters Description
format Input format string to apply to the remaining arguments
unnamed Input contents to be displayed

Links

AcDbHostApplicationServices

Was this information helpful?