C
Cat
I created an array of WebClients like this,
WebClient[] downloaders = new WebClient[10];
And started asynchronous downloading for each WebClients.
When the user wants to cancel the operation,
I did like this,
for(i=0; every downloaders...)
{
downloaders.CancelAsync();
}
This caused TargetInvocationException
Why? Do you know the reason? Please let me know.
Thank you.
WebClient[] downloaders = new WebClient[10];
And started asynchronous downloading for each WebClients.
When the user wants to cancel the operation,
I did like this,
for(i=0; every downloaders...)
{
downloaders.CancelAsync();
}
This caused TargetInvocationException
Why? Do you know the reason? Please let me know.
Thank you.