The DelphiVCL CleanupInstance method or DelphiVCL.Application.CleanupInstance is used to perform finalization on long strings, variants, and interface variables within a class.
Do not call CleanupInstance directly. CleanupInstance is called automatically when the object instance is destroyed.
CleanupInstance releases all long strings and variants. It sets long strings to empty and variants to Unassigned.
Let’s browse all the properties and methods of the DelphiVCL.Application.CleanupInstance using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.CleanupInstance) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.CleanupInstance using the print() command:
1 2 |
print(DelphiVCL.Application.CleanupInstance) print(DelphiVCL.Application.CleanupInstance.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.