Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: Invalid event handle on a Windows Embedded Compact 7-based device


View products that this article applies to.

This article describes an issue that occurs when you close a socket in kernel mode in Windows Embedded Compact 7. An update is available to resolve this issue. Before you install this update, all previously issued updates for this product must be installed.

↑ Back to the top


Symptoms

Consider the following scenario:
  • In Windows Embedded Compact 7, you open a socket from a kernel driver and use an asynchronous IO on the socket.
  • You run the WSAEventSelect function together with the FD_CLOSE flag, and then you close the socket by using the closesocket function.
  • You call a WaitForSingleObject function that uses same event handles that are used for the WSAEventSelect function.
In this scenario, the WaitForSingleObject function returns WAIT_FAILED. After the call to the closesocket function, the WSAEnumNetworkEvents and WSAWaitForMultipleEvents functions fail with a WSA_INVALID_HANDLE error.

Note The nonblocking closesocket function initiates graceful socket closure. This process may involve some data exchange. The calling driver must be able to use the WSAWaitForMultipleEvents and WSAEnumNetworkEvents functions in order to wait for graceful socket closure.

↑ Back to the top


Resolution

Download information

The Windows Embedded Compact 7 Monthly Update(January 2015) is now available from Microsoft. To download this monthly update, go to the following Microsoft Download Center website:


The kind of processor that each file applies to is visible in the name of each file in the "File information" section.

↑ Back to the top


More Information

Restart requirement

After you apply this update, you must perform a clean build of the whole platform. To do this, use one of the following methods:
  • On the Build menu, click Clean Solution, and then click Build Solution.
  • On the Build menu, click Rebuild Solution.
You do not have to restart the computer after you apply this software update.

Update replacement information

This update does not replace any other updates.
File information
The English version of this software update package has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Files that are included in this hotfix package


File nameFile sizeDateTimePath
Afd.dll118,78431-Dec-201410:16Public\Common\Oak\Target\X86\Retail
Afd.map100,18331-Dec-201410:16Public\Common\Oak\Target\X86\Retail
Afd.rel40,04831-Dec-201410:16Public\Common\Oak\Target\X86\Retail
Afd.dll303,10431-Dec-201410:16Public\Common\Oak\Target\X86\Debug
Afd.map217,15931-Dec-201410:16Public\Common\Oak\Target\X86\Debug
Afd.rel135,86431-Dec-201410:16Public\Common\Oak\Target\X86\Debug
Afd.dll212,99231-Dec-201410:16Public\Common\Oak\Target\X86\Checked
Afd.map211,08931-Dec-201410:16Public\Common\Oak\Target\X86\Checked
Afd.rel105,67531-Dec-201410:16Public\Common\Oak\Target\X86\Checked
Afd.dll159,74431-Dec-201410:18Public\Common\Oak\Target\Armv5\Retail
Afd.map98,32531-Dec-201410:18Public\Common\Oak\Target\Armv5\Retail
Afd.rel50,31431-Dec-201410:18Public\Common\Oak\Target\Armv5\Retail
Afd.dll405,50431-Dec-201410:16Public\Common\Oak\Target\Armv5\Debug
Afd.map219,98631-Dec-201410:16Public\Common\Oak\Target\Armv5\Debug
Afd.rel101,67331-Dec-201410:16Public\Common\Oak\Target\Armv5\Debug
Afd.dll262,14431-Dec-201410:17Public\Common\Oak\Target\Armv5\Checked
Afd.map211,46331-Dec-201410:17Public\Common\Oak\Target\Armv5\Checked
Afd.rel95,67031-Dec-201410:17Public\Common\Oak\Target\Armv5\Checked
Afd.dll159,74431-Dec-201410:17Public\Common\Oak\Target\Armv6\Retail
Afd.map98,32531-Dec-201410:17Public\Common\Oak\Target\Armv6\Retail
Afd.rel50,31431-Dec-201410:17Public\Common\Oak\Target\Armv6\Retail
Afd.dll401,40831-Dec-201410:16Public\Common\Oak\Target\Armv6\Debug
Afd.map219,98431-Dec-201410:16Public\Common\Oak\Target\Armv6\Debug
Afd.rel101,67331-Dec-201410:16Public\Common\Oak\Target\Armv6\Debug
Afd.dll262,14431-Dec-201410:17Public\Common\Oak\Target\Armv6\Checked
Afd.map211,46431-Dec-201410:17Public\Common\Oak\Target\Armv6\Checked
Afd.rel95,67031-Dec-201410:17Public\Common\Oak\Target\Armv6\Checked
Afd.dll159,74431-Dec-201410:18Public\Common\Oak\Target\Armv7\Retail
Afd.map98,19831-Dec-201410:18Public\Common\Oak\Target\Armv7\Retail
Afd.rel50,28531-Dec-201410:18Public\Common\Oak\Target\Armv7\Retail
Afd.dll397,31231-Dec-201410:16Public\Common\Oak\Target\Armv7\Debug
Afd.map219,98631-Dec-201410:16Public\Common\Oak\Target\Armv7\Debug
Afd.rel101,67331-Dec-201410:16Public\Common\Oak\Target\Armv7\Debug
Afd.dll258,04831-Dec-201410:17Public\Common\Oak\Target\Armv7\Checked
Afd.map211,46031-Dec-201410:17Public\Common\Oak\Target\Armv7\Checked
Afd.rel95,67031-Dec-201410:17Public\Common\Oak\Target\Armv7\Checked
Afd.dll204,80031-Dec-201410:18Public\Common\Oak\Target\Mipsii\Retail
Afd.map95,86931-Dec-201410:18Public\Common\Oak\Target\Mipsii\Retail
Afd.rel187,57131-Dec-201410:18Public\Common\Oak\Target\Mipsii\Retail
Afd.dll454,65631-Dec-201410:16Public\Common\Oak\Target\Mipsii\Debug
Afd.map217,44531-Dec-201410:16Public\Common\Oak\Target\Mipsii\Debug
Afd.rel448,16531-Dec-201410:16Public\Common\Oak\Target\Mipsii\Debug
Afd.dll335,87231-Dec-201410:16Public\Common\Oak\Target\Mipsii\Checked
Afd.map208,95531-Dec-201410:16Public\Common\Oak\Target\Mipsii\Checked
Afd.rel340,14031-Dec-201410:16Public\Common\Oak\Target\Mipsii\Checked
Afd.dll204,80031-Dec-201410:17Public\Common\Oak\Target\Mipsii_fp\Retail
Afd.map95,86931-Dec-201410:17Public\Common\Oak\Target\Mipsii_fp\Retail
Afd.rel187,57131-Dec-201410:17Public\Common\Oak\Target\Mipsii_fp\Retail
Afd.dll454,65631-Dec-201410:16Public\Common\Oak\Target\Mipsii_fp\Debug
Afd.map217,44431-Dec-201410:16Public\Common\Oak\Target\Mipsii_fp\Debug
Afd.rel448,16531-Dec-201410:16Public\Common\Oak\Target\Mipsii_fp\Debug
Afd.dll335,87231-Dec-201410:17Public\Common\Oak\Target\Mipsii_fp\Checked
Afd.map208,95431-Dec-201410:17Public\Common\Oak\Target\Mipsii_fp\Checked
Afd.rel340,14031-Dec-201410:17Public\Common\Oak\Target\Mipsii_fp\Checked
Afd.dll147,45631-Dec-201410:17Public\Common\Oak\Target\Sh4\Retail
Afd.map98,66131-Dec-201410:17Public\Common\Oak\Target\Sh4\Retail
Afd.rel107,56031-Dec-201410:17Public\Common\Oak\Target\Sh4\Retail
Afd.dll327,68031-Dec-201410:16Public\Common\Oak\Target\Sh4\Debug
Afd.map220,36231-Dec-201410:16Public\Common\Oak\Target\Sh4\Debug
Afd.rel180,78531-Dec-201410:16Public\Common\Oak\Target\Sh4\Debug
Afd.dll241,66431-Dec-201410:16Public\Common\Oak\Target\Sh4\Checked
Afd.map211,46431-Dec-201410:16Public\Common\Oak\Target\Sh4\Checked
Afd.rel162,54431-Dec-201410:16Public\Common\Oak\Target\Sh4\Checked
Afd.lib2,03231-Dec-201410:16Public\Common\Oak\Lib\X86\Retail
Afd.exp97331-Dec-201410:16Public\Common\Oak\Lib\X86\Retail
Afd.lib2,03231-Dec-201410:16Public\Common\Oak\Lib\X86\Debug
Afd.exp97231-Dec-201410:16Public\Common\Oak\Lib\X86\Debug
Afd.lib2,03231-Dec-201410:16Public\Common\Oak\Lib\X86\Checked
Afd.exp97431-Dec-201410:16Public\Common\Oak\Lib\X86\Checked
Afd.lib2,02631-Dec-201410:17Public\Common\Oak\Lib\Armv5\Retail
Afd.exp96531-Dec-201410:17Public\Common\Oak\Lib\Armv5\Retail
Afd.lib2,02631-Dec-201410:16Public\Common\Oak\Lib\Armv5\Debug
Afd.exp96431-Dec-201410:16Public\Common\Oak\Lib\Armv5\Debug
Afd.lib2,02631-Dec-201410:17Public\Common\Oak\Lib\Armv5\Checked
Afd.exp96631-Dec-201410:17Public\Common\Oak\Lib\Armv5\Checked
Afd.lib2,02631-Dec-201410:17Public\Common\Oak\Lib\Armv6\Retail
Afd.exp96531-Dec-201410:17Public\Common\Oak\Lib\Armv6\Retail
Afd.lib2,02631-Dec-201410:16Public\Common\Oak\Lib\Armv6\Debug
Afd.exp96431-Dec-201410:16Public\Common\Oak\Lib\Armv6\Debug
Afd.lib2,02631-Dec-201410:17Public\Common\Oak\Lib\Armv6\Checked
Afd.exp96631-Dec-201410:17Public\Common\Oak\Lib\Armv6\Checked
Afd.lib2,02631-Dec-201410:18Public\Common\Oak\Lib\Armv7\Retail
Afd.exp96531-Dec-201410:18Public\Common\Oak\Lib\Armv7\Retail
Afd.lib2,02631-Dec-201410:16Public\Common\Oak\Lib\Armv7\Debug
Afd.exp96431-Dec-201410:16Public\Common\Oak\Lib\Armv7\Debug
Afd.lib2,02631-Dec-201410:17Public\Common\Oak\Lib\Armv7\Checked
Afd.exp96631-Dec-201410:17Public\Common\Oak\Lib\Armv7\Checked
Afd.lib2,02631-Dec-201410:17Public\Common\Oak\Lib\Mipsii\Retail
Afd.exp96631-Dec-201410:17Public\Common\Oak\Lib\Mipsii\Retail
Afd.lib2,02631-Dec-201410:16Public\Common\Oak\Lib\Mipsii\Debug
Afd.exp96531-Dec-201410:16Public\Common\Oak\Lib\Mipsii\Debug
Afd.lib2,02631-Dec-201410:16Public\Common\Oak\Lib\Mipsii\Checked
Afd.exp96731-Dec-201410:16Public\Common\Oak\Lib\Mipsii\Checked
Afd.lib2,02631-Dec-201410:16Public\Common\Oak\Lib\Mipsii_fp\Retail
Afd.exp96931-Dec-201410:16Public\Common\Oak\Lib\Mipsii_fp\Retail
Afd.lib2,02631-Dec-201410:16Public\Common\Oak\Lib\Mipsii_fp\Debug
Afd.exp96831-Dec-201410:16Public\Common\Oak\Lib\Mipsii_fp\Debug
Afd.lib2,02631-Dec-201410:16Public\Common\Oak\Lib\Mipsii_fp\Checked
Afd.exp97031-Dec-201410:16Public\Common\Oak\Lib\Mipsii_fp\Checked
Afd.lib2,03231-Dec-201410:16Public\Common\Oak\Lib\Sh4\Retail
Afd.exp97331-Dec-201410:16Public\Common\Oak\Lib\Sh4\Retail
Afd.lib2,03231-Dec-201410:16Public\Common\Oak\Lib\Sh4\Debug
Afd.exp97231-Dec-201410:16Public\Common\Oak\Lib\Sh4\Debug
Afd.lib2,03231-Dec-201410:16Public\Common\Oak\Lib\Sh4\Checked
Afd.exp97431-Dec-201410:16Public\Common\Oak\Lib\Sh4\Checked


↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: kbfix, kbsurveynew, kbexpertiseadvanced, atdownload, kb

↑ Back to the top

Article Info
Article ID : 2983890
Revision : 1
Created on : 1/7/2017
Published on : 2/3/2015
Exists online : False
Views : 205