Every now and then the client will lockup and becomes completely
unresponsive to the user. No exception is thrown. All the threads just stop.
I have already made sure that none of the background threads call a UI
control without using the Invoke method.
Is it safe to make multiple web service calls from multiple threads within a
single client application to a single web services server? Any suggestions on
what I'm doing wrong?
Thanks for any help,
Colin
Perhaps it would make the coding easier if you were to call the Async
versions of the web methods and pass in a callback function. At least that
way you wouldn't need to handle creating your own threads, and possibly
avoid further related troubles.
just a thought :)
Andrew
"chendricks" <chend...@discussions.microsoft.com> wrote in message
news:9A7BCAFE-CF86-4286...@microsoft.com...
Sorry!
Andrew
"chendricks" <chend...@discussions.microsoft.com> wrote in message
news:3470A877-8B36-4AE0...@microsoft.com...
When using asynchornous BeginMethod, any exception from that method will be
thrown when u call end EndMethod to complete the function call (if you
will). So the following code will give u an idea:
Proxy.BeginCall(new AsyncCallback(...));
void CallEnded(IAsyncResult state) // the callback function passed to the
BeginCall function
{
try
{
Proxy.EndCall(state);
}
}
the parameters or type of parameter passed to the functions may not be
compleely accurate, but its only an illustration.
--
Andrian
"Andrew Brook" <yko...@hotmail.com> wrote in message
news:%23HExSPQ...@TK2MSFTNGP05.phx.gbl...