Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: CookieManager thread safety
| Subject: | Re: CookieManager thread safety |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Fri, 12 May 2006 10:28:38 |
"dk_sz" <dk_sz@hotmail.com> wrote in message
news:4464a4c4@newsgroups.borland.com...
> It wouldn't be impossible to restruture the code a bit so it didn't
> depend on notifications...
The notifications are required by Indy's internals. If a user assigns an
external CookieManager to a TIdHTTP and then frees the CookieManager,
TIdHTTP has to be notified of that so that it knows to not try to access
that CookieManager anymore. That is a basic rule of VCL component writing.
> > with multiple TIdHTTP objects in the same thread, though.
>
> But that is only rarely useful - right??
That depends on what you are actually doing.
Gambit