irigsoft Posted February 23, 2018 Share Posted February 23, 2018 Hello, I want to create multiple log files for different sessions. 1. I create a logFile with name a session ID. 2. When creating a new session I create TStringList (on UniMainModule public) 3. By some features (Functions and procedures on MainForm/ uniServerModule/ UniSession/), I store StringLIst.SaveToFile in a local (On server) log file. 4. In some situations, I get an Error on StringLIst "access address for 0000000". but I Free this StringList only OnDestroy session !!! Is there a way to save dynamically on the local file (on the server side) Link to comment Share on other sites More sharing options...
pedrisco Posted February 23, 2018 Share Posted February 23, 2018 TStringList is not thread safe, try with TidThreadSafeStringList. Link to comment Share on other sites More sharing options...
irigsoft Posted February 23, 2018 Author Share Posted February 23, 2018 Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now