相关资料:

http://www.cnblogs.com/rogge7/p/4631796.html

delphi
TStringList通过AddObject方法添加对象。
object里存的只是指向对象的指针,clear只是把指针清除了,对象并没有被释放。
TList,StringList等List类型的都需要手动释放。

TObjectList通过Add增加对象。
可以自动释放对象。

 

相关文章:

  • 2022-12-23
  • 2021-12-30
  • 2021-11-11
  • 2021-10-11
  • 2021-08-29
  • 2022-12-23
  • 2021-06-23
  • 2021-05-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-23
  • 2022-12-23
  • 2021-12-06
  • 2021-06-15
相关资源
相似解决方案