SOAP Request Leaves Thread Hangs


when I make a SOAP request, I see (in the task manager) that the number of applications in the application increases from 1 (main thread) to 8, which means 7 additional threads, this part is fine, but after receiving a response from the number of threads decreases 4 (3 + main thread) and stays that way until the next request is made. Since I don’t like working with SOAP and haven’t worked too much with it, does anyone know if this is normal, or can I kill / stop the freezing threads?
Using Delphi 2010

Additional information: I start requests in a flow, and yes, I call "CoInitialize" and "CoUninitialize" in the Execute method.

Testing: http://www.2shared.com/file/_dE4H-lO/soap_test_app.html

Thank you all for your time.

+5
source share
1 answer

Some other parts of the application recount something onto the SOAP stack. These flows will not disappear until the rest of the cleanup occurs.

What happens if you call the SOAP function again? Does it continue to grow 3 times every time or does it calm down? If it continues to grow, you need to do something. If not, then its low-level function and (maybe) not your problem. Keep track of the memory and make sure that it leaks over time (for example, when you clog it).

+1
source

All Articles