Can I call BeginInvoke without ever calling EndInvoke?

  • Thread starter Thread starter babylon
  • Start date Start date
babylon said:
does it cause memory leak?

I believe that for calls to Control.BeginInvoke you're okay, but for
everything else you really *shold* call EndInvoke - you may indeed end
up with a leak otherwise.

Someone on the CLR or C# mailing list had a nifty delegate wrapper
which you could use to make it easier though...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top