B
bernardpace
Hi,
I am trying to get more familiar with asynchronous programming.
I was reading through the document found on the page:
http://msdn.microsoft.com/library/d...html/cpovrasynchronousprogrammingoverview.asp
Now, I read that 'Always call EndInvoke after your asynchronous call
completes'.
In case the EndInvoke(..) method is not called, what would be the
behaviour?
Also, in the section 'Polling for Asynchronous Call Completion', the
program given checks whether the asynchronous method terminated, to
call the EndInvoke(..) method after. This is being done in the
following way:
while(ar.IsCompleted == false) {
Thread.Sleep(10);
}
If I'm correct, this is not so efficient. Is there other effecient
ways how this can be done?
Can someone help me out.
Thanks in Advance
I am trying to get more familiar with asynchronous programming.
I was reading through the document found on the page:
http://msdn.microsoft.com/library/d...html/cpovrasynchronousprogrammingoverview.asp
Now, I read that 'Always call EndInvoke after your asynchronous call
completes'.
In case the EndInvoke(..) method is not called, what would be the
behaviour?
Also, in the section 'Polling for Asynchronous Call Completion', the
program given checks whether the asynchronous method terminated, to
call the EndInvoke(..) method after. This is being done in the
following way:
while(ar.IsCompleted == false) {
Thread.Sleep(10);
}
If I'm correct, this is not so efficient. Is there other effecient
ways how this can be done?
Can someone help me out.
Thanks in Advance