On Tue, 25 May 2010, Bee Jay wrote:


On 25 Mei 2010, at 20:31, Michael Van Canneyt wrote:

But maybe the new garbage collector no longer has the problem; in that case,
my remarks are void.

I hope so. I haven't try the latest SVN either. :D

Tell him he should also get rid of the one-thread-per-session
model, because it is simply not correct in many circumstances. It is visible
in the use of threadvars.

Any suggestion how to do it better?

The problem resolves itself if you convert everything to TComponent
descendents: you can then follow the owner chain till you get to the
TWebSession class; There is only 1 instance of that class per session,
regardless of the threads in use.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to