Re: EndInvoke still required?
- From: "Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx>
- Date: Tue, 08 Jan 2008 12:43:57 -0800
On Tue, 08 Jan 2008 12:17:42 -0800, Jon Skeet [C# MVP] <skeet@xxxxxxxxx> wrote:
Peter Duniho <NpOeStPeAdM@xxxxxxxxxxxxxxxx> wrote:
<snip>
I would feel _much_ better about doing that if there were some explicit
statement in the official documentation regarding the situation. I have
not even seen any unofficial statement along these lines (like whatever
one Jon was referencing).
The unofficial statement is on Chris Brumme's blog, in some of the
comments:
http://blogs.gotdotnet.com/cbrumme/archive/2003/05/06/51385.aspx
The also deals with EndXXX in general.
Thanks for the link. To sum up:
* For examples of BeginXXX that follow the standard .NET convention, calling EndXXX is definitely important
* For Control.BeginInvoke(), which does not follow the standard .NET convention, almost five years ago someone from the WinForms team stated that you do _not_ need to call Control.EndInvoke()
It's nice to see in print, but it seems like they've had plenty of time to incorporate this advice into the documentation (and even in that unofficial reference there wasn't anything that actually said this behavior is future-proof). I guess it's time to file a complaint on the docs. One way or the other, the valid behavior needs to be explicitly described in the official docs.
Thanks,
Pete
.
- Follow-Ups:
- Re: EndInvoke still required?
- From: Erik Funkenbusch
- Re: EndInvoke still required?
- References:
- EndInvoke still required?
- From: Erik Funkenbusch
- Re: EndInvoke still required?
- From: Michael Nemtsev [MVP]
- Re: EndInvoke still required?
- From: Erik Funkenbusch
- Re: EndInvoke still required?
- From: Peter Duniho
- Re: EndInvoke still required?
- From: Jon Skeet [C# MVP]
- EndInvoke still required?
- Prev by Date: Re: EndInvoke still required?
- Next by Date: Re: EndInvoke still required?
- Previous by thread: Re: EndInvoke still required?
- Next by thread: Re: EndInvoke still required?
- Index(es):
Relevant Pages
|