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) Quote 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. Quote Link to comment Share on other sites More sharing options...
irigsoft Posted February 23, 2018 Author Share Posted February 23, 2018 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.