dxInitialize Method
Initializes all DevExpress units in a DLL project.
Declaration
procedure dxInitialize; 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 dxInitialize
procedure in a DLL project once an application loads a DLL with DevExpress components before they are accessed in code for the first time. Refer to the following topic for additional information and a code example: DevExpress Components in DLL Projects.
Important
Do not call the dxInitialize
procedure in the initialization section of a DLL project. Otherwise, an application may hang on loading the built DLL.