Re: EndInvoke still required?



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
.



Relevant Pages

  • Re: enumerate overrides leftskip
    ... margins, labels, referencing, etc. Read more about the documentation ... and formatting commands, available on CTAN at ...
    (comp.text.tex)
  • Re: EndInvoke still required?
    ... one Jon was referencing). ... The unofficial statement is on Chris Brumme's blog, ... Chris Brumme says it's "the official word". ...
    (microsoft.public.dotnet.framework)
  • Re: EndInvoke still required?
    ... statement in the official documentation regarding the situation. ... The unofficial statement is on Chris Brumme's blog, ... Jon Skeet - ...
    (microsoft.public.dotnet.framework)
  • Passprop.exe
    ... does not seems to be in W2K ResKit anymore? ... still referencing in documentation such as the lastest ... Michel T. ...
    (microsoft.public.win2000.security)