C++
Acad::ErrorStatus acdbCleanUp();
File
dbmain.h
Description
acdbCleanUp() causes a variety of "cleaning up" actions to happen before your host application unloads. Most of these actions are for internal housekeeping, but one action is to alert all the loaded .dbx applications that it is time to unload.
RealDWG host applications must call this function before exiting. ObjectARX programs must not call this function, because AutoCAD will handle the cleanup activities.