> I everybody, first of all sorry for my poor english. I have a problem
> with an event that is generated more times very quickly so the
[quoted text clipped - 9 lines]
>
> Does someone have better solutions?
> > I everybody, first of all sorry for my poor english. I have a problem
> > with an event that is generated more times very quickly so the
[quoted text clipped - 20 lines]
>
> Jon
Jon is, unsuprisingly enough having had a look through these forums,
on the ball. Unless the rapid firing is caused by the uncompleted
event handler (some sort of timer going on, which will build into a
crescendo if you stack multiple jobs causing eChina Syndrome) all you
really need to do is queue up the work jobs and handle them sensibly
and timelily... umm... in good time.
Try looking at the MS CCR (http://msdn2.microsoft.com/en-gb/robotics/
default.aspx) if you want a fancy pants solution to this problem.
Threads made easy (for a given subset of thread tasks, massive joins
not included, please read the small print). Don't be put off by the
fact that it says 'Robotics' all over it - that's just the weird
implementation MS have chosen for this awsome extension.
Jon Skeet [C# MVP] - 25 Feb 2008 18:23 GMT
<snip>
> Try looking at the MS CCR (http://msdn2.microsoft.com/en-gb/robotics/
> default.aspx) if you want a fancy pants solution to this problem.
> Threads made easy (for a given subset of thread tasks, massive joins
> not included, please read the small print). Don't be put off by the
> fact that it says 'Robotics' all over it - that's just the weird
> implementation MS have chosen for this awsome extension.
Another option is to try the CTP of "Parallel Extensions" which is more
likely to become mainstream than the CCR (not to in any way denigrate
the CCR, of course):
http://www.microsoft.com/downloads/details.aspx?FamilyID=e848dc1d-5be3-
4941-8705-024bc7f180ba&displaylang=en

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk