Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

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.

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.

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:

Windows Embedded Compact 7 updates
The kind of processor that each file applies to is visible in the name of each file in the "File information" section.

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.

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 name

File size

Date

Time

Path

Afd.dll

118,784

31-Dec-2014

10:16

Public\Common\Oak\Target\X86\Retail

Afd.map

100,183

31-Dec-2014

10:16

Public\Common\Oak\Target\X86\Retail

Afd.rel

40,048

31-Dec-2014

10:16

Public\Common\Oak\Target\X86\Retail

Afd.dll

303,104

31-Dec-2014

10:16

Public\Common\Oak\Target\X86\Debug

Afd.map

217,159

31-Dec-2014

10:16

Public\Common\Oak\Target\X86\Debug

Afd.rel

135,864

31-Dec-2014

10:16

Public\Common\Oak\Target\X86\Debug

Afd.dll

212,992

31-Dec-2014

10:16

Public\Common\Oak\Target\X86\Checked

Afd.map

211,089

31-Dec-2014

10:16

Public\Common\Oak\Target\X86\Checked

Afd.rel

105,675

31-Dec-2014

10:16

Public\Common\Oak\Target\X86\Checked

Afd.dll

159,744

31-Dec-2014

10:18

Public\Common\Oak\Target\Armv5\Retail

Afd.map

98,325

31-Dec-2014

10:18

Public\Common\Oak\Target\Armv5\Retail

Afd.rel

50,314

31-Dec-2014

10:18

Public\Common\Oak\Target\Armv5\Retail

Afd.dll

405,504

31-Dec-2014

10:16

Public\Common\Oak\Target\Armv5\Debug

Afd.map

219,986

31-Dec-2014

10:16

Public\Common\Oak\Target\Armv5\Debug

Afd.rel

101,673

31-Dec-2014

10:16

Public\Common\Oak\Target\Armv5\Debug

Afd.dll

262,144

31-Dec-2014

10:17

Public\Common\Oak\Target\Armv5\Checked

Afd.map

211,463

31-Dec-2014

10:17

Public\Common\Oak\Target\Armv5\Checked

Afd.rel

95,670

31-Dec-2014

10:17

Public\Common\Oak\Target\Armv5\Checked

Afd.dll

159,744

31-Dec-2014

10:17

Public\Common\Oak\Target\Armv6\Retail

Afd.map

98,325

31-Dec-2014

10:17

Public\Common\Oak\Target\Armv6\Retail

Afd.rel

50,314

31-Dec-2014

10:17

Public\Common\Oak\Target\Armv6\Retail

Afd.dll

401,408

31-Dec-2014

10:16

Public\Common\Oak\Target\Armv6\Debug

Afd.map

219,984

31-Dec-2014

10:16

Public\Common\Oak\Target\Armv6\Debug

Afd.rel

101,673

31-Dec-2014

10:16

Public\Common\Oak\Target\Armv6\Debug

Afd.dll

262,144

31-Dec-2014

10:17

Public\Common\Oak\Target\Armv6\Checked

Afd.map

211,464

31-Dec-2014

10:17

Public\Common\Oak\Target\Armv6\Checked

Afd.rel

95,670

31-Dec-2014

10:17

Public\Common\Oak\Target\Armv6\Checked

Afd.dll

159,744

31-Dec-2014

10:18

Public\Common\Oak\Target\Armv7\Retail

Afd.map

98,198

31-Dec-2014

10:18

Public\Common\Oak\Target\Armv7\Retail

Afd.rel

50,285

31-Dec-2014

10:18

Public\Common\Oak\Target\Armv7\Retail

Afd.dll

397,312

31-Dec-2014

10:16

Public\Common\Oak\Target\Armv7\Debug

Afd.map

219,986

31-Dec-2014

10:16

Public\Common\Oak\Target\Armv7\Debug

Afd.rel

101,673

31-Dec-2014

10:16

Public\Common\Oak\Target\Armv7\Debug

Afd.dll

258,048

31-Dec-2014

10:17

Public\Common\Oak\Target\Armv7\Checked

Afd.map

211,460

31-Dec-2014

10:17

Public\Common\Oak\Target\Armv7\Checked

Afd.rel

95,670

31-Dec-2014

10:17

Public\Common\Oak\Target\Armv7\Checked

Afd.dll

204,800

31-Dec-2014

10:18

Public\Common\Oak\Target\Mipsii\Retail

Afd.map

95,869

31-Dec-2014

10:18

Public\Common\Oak\Target\Mipsii\Retail

Afd.rel

187,571

31-Dec-2014

10:18

Public\Common\Oak\Target\Mipsii\Retail

Afd.dll

454,656

31-Dec-2014

10:16

Public\Common\Oak\Target\Mipsii\Debug

Afd.map

217,445

31-Dec-2014

10:16

Public\Common\Oak\Target\Mipsii\Debug

Afd.rel

448,165

31-Dec-2014

10:16

Public\Common\Oak\Target\Mipsii\Debug

Afd.dll

335,872

31-Dec-2014

10:16

Public\Common\Oak\Target\Mipsii\Checked

Afd.map

208,955

31-Dec-2014

10:16

Public\Common\Oak\Target\Mipsii\Checked

Afd.rel

340,140

31-Dec-2014

10:16

Public\Common\Oak\Target\Mipsii\Checked

Afd.dll

204,800

31-Dec-2014

10:17

Public\Common\Oak\Target\Mipsii_fp\Retail

Afd.map

95,869

31-Dec-2014

10:17

Public\Common\Oak\Target\Mipsii_fp\Retail

Afd.rel

187,571

31-Dec-2014

10:17

Public\Common\Oak\Target\Mipsii_fp\Retail

Afd.dll

454,656

31-Dec-2014

10:16

Public\Common\Oak\Target\Mipsii_fp\Debug

Afd.map

217,444

31-Dec-2014

10:16

Public\Common\Oak\Target\Mipsii_fp\Debug

Afd.rel

448,165

31-Dec-2014

10:16

Public\Common\Oak\Target\Mipsii_fp\Debug

Afd.dll

335,872

31-Dec-2014

10:17

Public\Common\Oak\Target\Mipsii_fp\Checked

Afd.map

208,954

31-Dec-2014

10:17

Public\Common\Oak\Target\Mipsii_fp\Checked

Afd.rel

340,140

31-Dec-2014

10:17

Public\Common\Oak\Target\Mipsii_fp\Checked

Afd.dll

147,456

31-Dec-2014

10:17

Public\Common\Oak\Target\Sh4\Retail

Afd.map

98,661

31-Dec-2014

10:17

Public\Common\Oak\Target\Sh4\Retail

Afd.rel

107,560

31-Dec-2014

10:17

Public\Common\Oak\Target\Sh4\Retail

Afd.dll

327,680

31-Dec-2014

10:16

Public\Common\Oak\Target\Sh4\Debug

Afd.map

220,362

31-Dec-2014

10:16

Public\Common\Oak\Target\Sh4\Debug

Afd.rel

180,785

31-Dec-2014

10:16

Public\Common\Oak\Target\Sh4\Debug

Afd.dll

241,664

31-Dec-2014

10:16

Public\Common\Oak\Target\Sh4\Checked

Afd.map

211,464

31-Dec-2014

10:16

Public\Common\Oak\Target\Sh4\Checked

Afd.rel

162,544

31-Dec-2014

10:16

Public\Common\Oak\Target\Sh4\Checked

Afd.lib

2,032

31-Dec-2014

10:16

Public\Common\Oak\Lib\X86\Retail

Afd.exp

973

31-Dec-2014

10:16

Public\Common\Oak\Lib\X86\Retail

Afd.lib

2,032

31-Dec-2014

10:16

Public\Common\Oak\Lib\X86\Debug

Afd.exp

972

31-Dec-2014

10:16

Public\Common\Oak\Lib\X86\Debug

Afd.lib

2,032

31-Dec-2014

10:16

Public\Common\Oak\Lib\X86\Checked

Afd.exp

974

31-Dec-2014

10:16

Public\Common\Oak\Lib\X86\Checked

Afd.lib

2,026

31-Dec-2014

10:17

Public\Common\Oak\Lib\Armv5\Retail

Afd.exp

965

31-Dec-2014

10:17

Public\Common\Oak\Lib\Armv5\Retail

Afd.lib

2,026

31-Dec-2014

10:16

Public\Common\Oak\Lib\Armv5\Debug

Afd.exp

964

31-Dec-2014

10:16

Public\Common\Oak\Lib\Armv5\Debug

Afd.lib

2,026

31-Dec-2014

10:17

Public\Common\Oak\Lib\Armv5\Checked

Afd.exp

966

31-Dec-2014

10:17

Public\Common\Oak\Lib\Armv5\Checked

Afd.lib

2,026

31-Dec-2014

10:17

Public\Common\Oak\Lib\Armv6\Retail

Afd.exp

965

31-Dec-2014

10:17

Public\Common\Oak\Lib\Armv6\Retail

Afd.lib

2,026

31-Dec-2014

10:16

Public\Common\Oak\Lib\Armv6\Debug

Afd.exp

964

31-Dec-2014

10:16

Public\Common\Oak\Lib\Armv6\Debug

Afd.lib

2,026

31-Dec-2014

10:17

Public\Common\Oak\Lib\Armv6\Checked

Afd.exp

966

31-Dec-2014

10:17

Public\Common\Oak\Lib\Armv6\Checked

Afd.lib

2,026

31-Dec-2014

10:18

Public\Common\Oak\Lib\Armv7\Retail

Afd.exp

965

31-Dec-2014

10:18

Public\Common\Oak\Lib\Armv7\Retail

Afd.lib

2,026

31-Dec-2014

10:16

Public\Common\Oak\Lib\Armv7\Debug

Afd.exp

964

31-Dec-2014

10:16

Public\Common\Oak\Lib\Armv7\Debug

Afd.lib

2,026

31-Dec-2014

10:17

Public\Common\Oak\Lib\Armv7\Checked

Afd.exp

966

31-Dec-2014

10:17

Public\Common\Oak\Lib\Armv7\Checked

Afd.lib

2,026

31-Dec-2014

10:17

Public\Common\Oak\Lib\Mipsii\Retail

Afd.exp

966

31-Dec-2014

10:17

Public\Common\Oak\Lib\Mipsii\Retail

Afd.lib

2,026

31-Dec-2014

10:16

Public\Common\Oak\Lib\Mipsii\Debug

Afd.exp

965

31-Dec-2014

10:16

Public\Common\Oak\Lib\Mipsii\Debug

Afd.lib

2,026

31-Dec-2014

10:16

Public\Common\Oak\Lib\Mipsii\Checked

Afd.exp

967

31-Dec-2014

10:16

Public\Common\Oak\Lib\Mipsii\Checked

Afd.lib

2,026

31-Dec-2014

10:16

Public\Common\Oak\Lib\Mipsii_fp\Retail

Afd.exp

969

31-Dec-2014

10:16

Public\Common\Oak\Lib\Mipsii_fp\Retail

Afd.lib

2,026

31-Dec-2014

10:16

Public\Common\Oak\Lib\Mipsii_fp\Debug

Afd.exp

968

31-Dec-2014

10:16

Public\Common\Oak\Lib\Mipsii_fp\Debug

Afd.lib

2,026

31-Dec-2014

10:16

Public\Common\Oak\Lib\Mipsii_fp\Checked

Afd.exp

970

31-Dec-2014

10:16

Public\Common\Oak\Lib\Mipsii_fp\Checked

Afd.lib

2,032

31-Dec-2014

10:16

Public\Common\Oak\Lib\Sh4\Retail

Afd.exp

973

31-Dec-2014

10:16

Public\Common\Oak\Lib\Sh4\Retail

Afd.lib

2,032

31-Dec-2014

10:16

Public\Common\Oak\Lib\Sh4\Debug

Afd.exp

972

31-Dec-2014

10:16

Public\Common\Oak\Lib\Sh4\Debug

Afd.lib

2,032

31-Dec-2014

10:16

Public\Common\Oak\Lib\Sh4\Checked

Afd.exp

974

31-Dec-2014

10:16

Public\Common\Oak\Lib\Sh4\Checked



Status

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

References

Learn about the standard terminology that's used to describe Microsoft software updates.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×