Soap calls in C++ threads

I am calling a java web service method from shared library(which uses soap calls generated by gsoap tools) in C++ thread.when I run this code
its generating core file.I debug and found its failing at shared library
function 2nd line(lines starts with DocumentumToolPortBindingProxy).
This works fine if i don't call this in threads.
Please check below code and advise how to go about..


shared library function:
int DownloadImgFrmServer(unsigned long lDocID , char **buffer, unsigned long **buflen)
{
struct soap *soap = soap_new1(SOAP_ENC_MTOM);
DocumentumToolPortBindingProxy MyReq(*soap);
:
:
return 0;
}
Topic archived. No new replies allowed.