dxFinalize Method
Finalizes all DevExpress units in a DLL project.
Declaration
procedure dxFinalize; stdcall;
Remarks
All DevExpress components allocate and release required system resources (such as memory, handles, context, etc.) to function properly. Every DevExpress unit in a project adds its initialization and finalization routines to the global lists executed automatically and safely in a built executable (EXE) or Borland Package Library (BPL) file. We recommend that you use DevExpress components in BPL projects instead of DLL projects if you need dynamic link libraries in your application.
The dxInitialize and dxFinalize
procedures execute the initialization and finalization routine lists for all DevExpress units used in a dynamic link library (DLL) project. Call the dxFinalize
procedure in a DLL project when an application is about to unload a DLL to properly release all resources used by all DevExpress components in the DLL. Refer to the following topic for additional information and a code example: DevExpress Components in DLL Projects.
Important
Do not call the dxFinalize
procedure in the finalization section of a DLL project. Otherwise, an application may hang on unloading the built DLL.