Cannot unload ws2_32.dll, hang in WSACleanup

C

Chris

Hi, please help.
My application hangs inside WSACleanup(),

Stack trace is as follows.

ntdll.dll!_KiFastSystemCallRet@0()
ntdll.dll!_NtWaitForSingleObject@12() + 0xc
ntdll.dll!_RtlpWaitOnCriticalSection@8() + 0xc8
ntdll.dll!_RtlEnterCriticalSection@4() + 0xa2e9
ntdll.dll!_LdrUnloadDll@4() + 0x35
kernel32.dll!_FreeLibrary@4() + 0x4d
mswsock.dll!_CloseIcfConnection@4() + 0x1b
mswsock.dll!_WSPCleanup@4() + 0x15a
ws2_32.dll!DPROVIDER::WSPCleanup() + 0x21
ws2_32.dll!CleanupProtocolProviders() + 0x338f
ws2_32.dll!DCATALOG::EnumerateCatalogItems() + 0x25
ws2_32.dll!DPROCESS::~DPROCESS() + 0x68
ws2_32.dll!DPROCESS::`scalar deleting destructor'() + 0xd
ws2_32.dll!_WSACleanup@0() + 0x2fe4
TryNetworkServiceCPPShim.exe!0040ef07()
ntdll.dll!_InitSecurityCookie@0() + 0x22
ntdll.dll!_RtlFreeHeap@12() + 0x142
007cf008()

Anyone know what could be the reason?

Thanks,
Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top