WinHTTP Issue RRS feed

  • Question

  • Hi,


    Currently we are working on application side. In our project, we are querying the web server to receive some data. We are using WinHTTP(5.1.2600.2180) for the communication to the server. Currently we are having one crash in the main thread after receiving the data (worker thread)from web server. We are not having the access to the real time place where the problem occurs.

                  We started analysing the problem using Intel Thread checker tool. That tool said like there is a conflict between the main thread and the worker thread. Then we simulated the web server and did more analysis. We could see some messages

    (WINHTTP_CALLBACK_STATUS_HEADERS_AVAILABLE) coming even after closing the WinHttp call back handles and winhttp handles. MSDN says like even after closing Callback calls, we will be receiving the messages.

    Is this behaviour is ok? Or else it can create any problem?

    The main issue we are facing is we don’t have access to the real time scenario and trying to fix it using simulators. While using simulators,

    WINHTTP_CALLBACK_STATUS_HEADERS_AVAILABLE message is coming at the end. But while using real time web server,

    WINHTTP_CALLBACK_STATUS_READ_COMPLETE message comes at the end.

    We don’t know how to decide when the worker thread is getting closed and to solve the conflict?


    Can you please help me on this?
    Wednesday, October 17, 2007 2:32 AM