Search code examples
multithreadingdelphidelphi-xe2

TThreadedStringList in delphi xe2


I am making heavy computations so i need to use a TStringList in a separate thread. Does XE2 has a special class defined for this because i thought it had if not what are my options.


Solution

  • Indy ships with Delphi and has its own TIdThreadSafeStringList class available in the IdThreadSafe.pas unit. It also has several other TIdThreadSafe... classes available for Integer, Cardinal, Int64, String, TDateTime, and Double.