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

dxFinalize Method

In This Article

Finalizes all DevExpress units in a DLL project.

#Declaration

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

See Also