DelphiVCL CleanupInstance方法或DelphiVCL.Application.CleanupInstance 用于对类中的长字符串、变体和接口变量进行最终处理。
请不要直接调用CleanupInstance。当对象实例被销毁时,会自动调用CleanupInstance。
CleanupInstance 释放所有的长字符串和变体。它将长字符串设置为空,变体设置为未分配。
让我们用dir()命令浏览DelphiVCL.Application.CleanupInstance的所有属性和方法。
import DelphiVCL
dir(DelphiVCL.Application.CleanupInstance)
请看我们的Windows命令提示符中的响应。

你也可以使用print()命令来阅读DelphiVCL.Application. CleanupInstance的简短信息。
print(DelphiVCL.Application.CleanupInstance)
print(DelphiVCL.Application.CleanupInstance.__doc__)
请看我们的Windows命令提示符中的响应。
