Autor Beitrag
JRegier
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Mo 18.07.05 21:15 
Sagt mal werden bei einer TObjectList bei Clear auch Objecte ohne Owner aus dem Speicher geräumt?
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Mo 18.07.05 21:28 
Hi!

TObjectlist.Clear gibt die Objekte nicht frei, sofern du nicht OwnsObjects auf True geschaltet hast. Ist das der Fall, werden sämtliche Objekte abgeräumt, unabhängig vom Owner.

Die Eigenschaft Owner gibt´s erst bei der Klasse TComponent, die Objectlist prüft die einzelnen Objekte nicht weiter.

Cu,
Udontknow
JRegier Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Mo 18.07.05 21:45 
user profile iconUdontknow hat folgendes geschrieben:
Hi!

TObjectlist.Clear gibt die Objekte nicht frei, sofern du nicht OwnsObjects auf True geschaltet hast. Ist das der Fall, werden sämtliche Objekte abgeräumt, unabhängig vom Owner.

Die Eigenschaft Owner gibt´s erst bei der Klasse TComponent, die Objectlist prüft die einzelnen Objekte nicht weiter.

Cu,
Udontknow


Vielen Dank für die Info weiser Mann! :wink: