I’m attempting to perform a winsock send() within a UMDF driver and the host
process (WudfHost.exe) throws the exceptions as below. Any suggestions on
how I might debug this better? Any suggestions on using winsock within a
UMDF driver? I’ve been around the block on this one a few times… using
WSASend() instead of send(), executing winsock code in a separate thread
outside the UMDF callbacks, etc. Everything seems to yield the same
exceptions…
Debug Output… (driver based on echo sample)
SerialHub: CMyQueue::OnWrite
‘WudfHost.exe’: Loaded ‘C:\WINDOWS\system32\winsflt.dll’, Binary was not
built with debug information.
‘WudfHost.exe’: Loaded ‘C:\WINDOWS\system32\shlwapi.dll’, No symbols loaded.
‘WudfHost.exe’: Loaded ‘C:\WINDOWS\system32\shell32.dll’, No symbols loaded.
‘WudfHost.exe’: Loaded
‘C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll’,
No symbols loaded.
‘WudfHost.exe’: Loaded ‘C:\WINDOWS\system32\comctl32.dll’, No symbols
loaded.
‘WudfHost.exe’: Loaded ‘C:\WINDOWS\system32\mswsock.dll’, No symbols loaded.
‘WudfHost.exe’: Loaded ‘C:\WINDOWS\system32\hnetcfg.dll’, No symbols loaded.
‘WudfHost.exe’: Loaded ‘C:\WINDOWS\system32\wshtcpip.dll’, No symbols
loaded.
The thread ‘Win32 Thread’ (0x68c) has exited with code 0 (0x0).
‘WudfHost.exe’: Loaded ‘C:\WINDOWS\system32\secur32.dll’, No symbols loaded.
…winsock correctly initialized, bound and connected at this point. Then a
send() is attempted…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
First-chance exception at 0x7c812a5b in WudfHost.exe: Microsoft C++
exception: exception at memory location 0x0071f2ac…
…the send() function sucessfully completes as below, but the host
eventually becomes corrupt…
SerialHub: 7 character(s) sent successfully