Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: CookieManager thread safety

www.cryer.info
Managed Newsgroup Archive

Re: CookieManager thread safety

Subject:Re: CookieManager thread safety
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Mon, 8 May 2006 12:22:16

"dk_sz" <dk_sz@hotmail.com> wrote in message
news:445e0139$1@newsgroups.borland.com...

> I have been running dozens of tests this week. On some
> projects (long time running, many threads / connections)
> I would consistently get access violations when doing :
> " cookiemanager.free -> inherited -> free notifications... "

Why are you freeing the CookieManager at all while your TIdHTTP instances
are still using it?

> The whole free / notification system isn't thread safe is it?

No, it is not.

> I am using 10.1.5

I just checked in a change for TIdHTTP to clear its local CookieManager in
the destructor.  Beyond that, can you provide more details about what
EXACTLY you are doing, and where the AVs are actually occuring?


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive