Share

acdbTerminate Function

C++

ACDB_PORT void acdbTerminate();

File

dbmain.h

Description

Explicit init/term functions for AcDb. On Windows dynamic libraries have a 2 phase init that acdb has grown to rely on:

  1. lobal constructors are called.
  2. DllMain is called.
On the Mac there's no DllMain so clients must call these functions to properly init/term acdb. Most clients won't have to explicity call these functions because we implicity call acdbInitialize when acdbSetHostApplicationServices and acdbValidateSetup are called. Multiple calls to these functions are OK. Calls after the first are ignored.

Was this information helpful?