Also, I use a TMemoryStream with some objects. Is that an issue? Is it
thread safe to have multiple HttpClip objects using multiple TMemoryStreams
at the same time?

No it's not thread safe. It just reads the stream without any kind of
critical section or locking mechanism.

It is safe to have each HttpCli using his own TMemoryStream and have a lot of HttpCli running concurrently. It is unsafe to have the same TMemoryStream used by several HttpCli components unless you know exactly what you are doing. I would not recommand it.

The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)

To unsubscribe or change your settings for TWSocket mailing list
please goto
Visit our website at

Reply via email to