U
Ulrich Strauss
I have a CF Applikation which talks to a Soap-Service gathering some data.
Part of this Data are Image URL's. I'm using a HttpWebRequest to download
and cache those images. (not many)
After a few (less then 10) (synchronous) SOAP-Calls I get the Error "There
were not enough free threads in the ThreadPool object to complete the
operation".
After some research in the net I'm quite sure I understand the "problem",
but how to workaround this? I already checked with some debugmessages and
the applikation threadpool reports always 25/500 free threads/iothreads.
So main questions are:
a) Is there any alternativ soapclient-class around which I can use, which
will not use the default threadpool, at least in synchronous calls?
b) Any "hack" to make it use a ManagedThreadPool?
c) What is the suggested workaround to make the cf httpwebrequest releasing
the resources to the pool to be able to reuse them.
Env: WinCE 6.0, ALL QFE , CF 2.0 , OpenNETCF SDF 2.1
Thanks in advance,
Ulrich
Part of this Data are Image URL's. I'm using a HttpWebRequest to download
and cache those images. (not many)
After a few (less then 10) (synchronous) SOAP-Calls I get the Error "There
were not enough free threads in the ThreadPool object to complete the
operation".
After some research in the net I'm quite sure I understand the "problem",
but how to workaround this? I already checked with some debugmessages and
the applikation threadpool reports always 25/500 free threads/iothreads.
So main questions are:
a) Is there any alternativ soapclient-class around which I can use, which
will not use the default threadpool, at least in synchronous calls?
b) Any "hack" to make it use a ManagedThreadPool?
c) What is the suggested workaround to make the cf httpwebrequest releasing
the resources to the pool to be able to reuse them.
Env: WinCE 6.0, ALL QFE , CF 2.0 , OpenNETCF SDF 2.1
Thanks in advance,
Ulrich