Hi,
I have used the wsdl2cpp tool to create a Web Service class.
I'm calling the generated class's asynchronous method. It works fine when server replies and when server refuses connection.
Problem starts when server doesn't reply at all (timeout). In this case I never get a response. So I've placed a timer, and when it pops up, I'm deleting the generated class. Then the generated class gets stuck when its destructor tries to delete the CSenServiceConnection member:
I've tried also calling iConnection->Cancel() before deleting, but then it gets stuck on the Cancel() line:Code:CLoginConnectService::~CLoginConnectService() { if (iOwnsConnection) { delete iConnection; // <== This line never returns } Xsd::SenOps::DestroySanyi(); }
Also tried calling iConnection->TransactionCompleted(), but this got stuck too:Code:CLoginConnectService::~CLoginConnectService() { if (iOwnsConnection) { iConnection->Cancel(); // <== This line never returns delete iConnection; } Xsd::SenOps::DestroySanyi(); }
Can this be fixed?Code:CLoginConnectService::~CLoginConnectService() { if (iOwnsConnection) { iConnection->TransactionCompleted(); // <== This line never returns delete iConnection; } Xsd::SenOps::DestroySanyi(); }
Thanks,
Nadav




