473,396 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

EndInvoke - consequences

B"H

What are the consequences of not calling EndInvoke on an Asynconis Delegate?
Does Controls BeginInvoke also REQUIRE a call to EndInvoke? Being that its
running on the main thread anyway?

Thanks
Nov 22 '05 #1
1 1238
Hi Moshe,

I think that EndInvoke is necessary only if you want to retrieve some
output/return parameters or you want to synchronize threads.
IOW it is not necessary.
--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rhand.com

"Moshe Plotkin" <mp******@hotmail.com> wrote in message
news:uN*************@tk2msftngp13.phx.gbl...
B"H

What are the consequences of not calling EndInvoke on an Asynconis Delegate? Does Controls BeginInvoke also REQUIRE a call to EndInvoke? Being that its
running on the main thread anyway?

Thanks

Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Vishal Gupta | last post by:
Hi, I am trying to call a function in my web page, asynchronously, to improve performance. I am using a function delegate to do that. I have a web page. When the user clicks a button, i want to...
1
by: scott ocamb | last post by:
hello i am getting this error EndInvoke can only be called once for each asynchronous operation I have coded an app using the async method development pattern. This error occurred under...
1
by: Moshe Plotkin | last post by:
B"H What are the consequences of not calling EndInvoke on an Asynconis Delegate? Does Controls BeginInvoke also REQUIRE a call to EndInvoke? Being that its running on the main thread anyway? ...
0
by: David C. allen | last post by:
I am calling a webclass using the proxy functions generated when I referenced the webclass. When I call the end function for the EndGetBug function the function exits without error on the Dim...
2
by: Jet Leung | last post by:
Hi All, There is a problem about asynchronism process.If I run the method by BeginInvoke() and how can I know when the method is finish? And maybe I can say when I can use EndInvoke()?
2
by: Nick Palmius | last post by:
Hello, I am experimenting with async callbacks using BeginInvoke and EndInvoke, and although my code which I have shown below works, when the program stops at the end (on the ReadLine()), there...
2
by: Julia | last post by:
Hi, I am using Asynchronously Delegates,and I wonder Can I call EndInvoke to end the processing before THE Asynchronously action ended? Thanks.
11
by: Doug Thews | last post by:
I've been working on some samples that use BeginInvoke/EndInvoke. In one example, I call BeginInvoke and pass it an AsyncCallback function pointer. I was messing around with ReaderWriterLocks and...
4
by: Max | last post by:
Hi! In <MPG.1b660df23c2f8b6498af23@msnews.microsoft.com> Jon Skeet said that he _believes_ that for UI calls the WinForms team has _basically_ guaranteed that EndInvoke is not required after...
3
by: Peter | last post by:
Hi I call some "worker"-Methods asyncronous. here some simplified code .... public delegate long AsyncWCaller(string parameter); ....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.