а зачем Вы делаете CleanupInstance?
Ведь это по сути почти удаление объекта.
Цитата:
Performs 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.
|