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);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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);
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函数做清理工作
Thanks, I have added these two functions. Will update CVS soon.