Microsoft KB Archive/816439

= PRB: Winsock 2.0 Test Case 101 in the Windows CE Test Kit Does Not Succeed =

Article ID: 816439

Article Last Modified on 8/4/2004

-

APPLIES TO


 * Microsoft Windows CE .NET

-





SYMPTOMS
The Winsock 2.0 test case 101 that is included with the Microsoft Windows CE .NET Test Kit (CETK) may stop responding, and you may receive the following error message:

10014 (WSAEFAULT)



CAUSE
This problem occurs because the test case calls the recvfrom function and passes an uninitialized buffer size parameter.



RESOLUTION
To resolve this problem, add the following code to the Transfer.cpp source file.

Insert the code in the TransferTest function, before the first use of the cbRemoteAddr variable: cbRemoteAddr = sizeof(ssRemoteAddr); For more information about rebuilding the test to incorporate the fixed source, see the &quot;More Information&quot; section.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
To implement the resolution to this problem (as described in the &quot;Resolution&quot; section), you must download and install a header file. The following file is available for download from the Microsoft Download Center:

Download the Katoex.exe package now. For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. Note This article uses several of the path environment variables that are defined in the Windows CE build environment.

To see how these variables are defined, follow these steps in Platform Builder:
 * 1) Open the build release directory.
 * 2) At the command prompt that appears, type set.

When you install the CETK source, it is saved in the following location:

\Others\Wcetk

where is the build environment variable that stores the installation location for Microsoft Windows CE.

The Winsock 2.0 test source is located in the following directory:

\Others\Wcetk\Source\Ws2bvt

After you modify the test code, you must follow these steps to rebuild and to use the updated test:  Add the Katoex.exe header file. Download the Katoex.exe file that is provided earlier in this article, and then save it in the following location:

\Others\Wcetk\Tux\Inc

 Change the Ws2bvt source file in two places:   Add the following below the TARGETTYPE definition: INCLUDES=..\..\tux\inc   Change the reference to Kato.lib in the second TARGETLIBS definition to read as follows: ..\..\tux\lib\$(_CPUINDPATH)\kato.lib  </li> Build the Ws2bvt test:  In Platform Builder, open the platform where you will be running the test.</li> On the Build menu, click Open Build Release Directory.</li> In the resulting console window, change to the following directory:

\Others\Wcetk\Source\Ws2bvt

</li> Type build -c, and then press ENTER.</li></ol> </li> Make the new .dll file available to the test kit.</li> After the build of the test is complete, run the following commands at a command prompt (where  is the CPU of your platform, for example,  ).:  cd \cepb\wcetk\ddtk\ </li> ren ws2bvt.dll ws2bvt.bak</li> xcopy /v \target\ \retail\ws2bvt.dll</li></ol> </li></ol>

Keywords: kbdownload kbbug kbfile kbprb KB816439

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.