Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

dxInitialize Method

In This Article

Initializes all DevExpress units in a DLL project.

#Declaration

Delphi
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.

See Also