Menu

bug of 4.3

nieoding
2008-11-11
2013-01-28
  • nieoding

    nieoding - 2008-11-11

    update the new version
    in Vistual Studio 2008
    test code:

    #include <winsock2.h>
    #include <Ws2tcpip.h>

    #include <udt.h>
    void test()
    {
        UDTSOCKET cln = UDT::socket(1,1,1);
    }
    int _tmain(int argc, _TCHAR* argv[])
    {
           return 0;
    }

    I only define function test() and it is not be used, but the application cannot exit.
    I check code
    application will stop at (api.cpp line 161)     WaitForSingleObject(m_GCExitCond, INFINITE);

     
    • nieoding

      nieoding - 2008-11-17

      http://blog.csdn.net/guke1978_123/archive/2006/03/16/625773.aspx

      lilyco
      Window下,DllMain DLL_PROCESS_DETACH 里面做WaitForSignalObject(..,-1)是不行的,违反了DllMain规则,会导致程序死锁退出不了,还是以前的建议,dll新export出来一个UDT::exit函数做清理工作

       
    • Yunhong Gu

      Yunhong Gu - 2008-12-01

      Thanks, I have added these two functions. Will update CVS soon.

       

Log in to post a comment.