4

I use TEventLog component to debug my application, log all steps in order to fully verify that is working properly.

Is TEventLog thread safe, I am writing from multiple threads using the same instance of TEventLog. Is it wrong, should I use critical sections when writting ?

HTTP 410
  • 17,300
  • 12
  • 76
  • 127
opc0de
  • 11,557
  • 14
  • 94
  • 187

1 Answers1

4

I don't think it is thread safe. I don't see anything done for it. Moreover it is a TComponent, and most tcomponents are for designtime use and not threadsafe.

So yes, probably you must serialize yousrself.

Marco van de Voort
  • 25,628
  • 5
  • 56
  • 89