Archived

This topic is now archived and is closed to further replies.

Client->Close() let crash server

This topic is 5010 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

The following code that close the client let crash the server. Any idea why? if( my_client) { HRESULT hr = 0; while(hr != S_OK) { hr = my_client->CancelAsyncOperation(NULL, DPNCANCEL_ALL_OPERATIONS); Sleep(1); } my_client->Close(0); my_client->Release(); my_client = 0; Seems as the server still get messaages or what?

Share this post


Link to post
Share on other sites