Examples Delphi

A good way to cut down on the amount of memory used,
assuming your program does not use OLE,
is to free a DLL:

FreeLibrary(GetModuleHandle('OleAut32'));