Den här artikeln beskrivs ett problem som uppstår när du stänger en socket i kernel-läge i Windows Embedded kompakt 7. Det finns en uppdatering som löser problemet. Alla tidigare utgivna uppdateringar för den här produkten måste installeras innan du installerar denna uppdatering.
Symptom
Föreställ dig följande:
-
I Windows Embedded kompakt 7, öppna en socket från en kernel-drivrutin och använder en asynkron I/O på socketen.
-
Du kör funktionen WSAEventSelect tillsammans med flaggan FD_CLOSE och Stäng socketen med hjälp av funktionen closesocket .
-
Du kan anropa en WaitForSingleObject -funktion som använder samma händelsehanterare som används för funktionen WSAEventSelect .
I det här fallet returnerar funktionen WaitForSingleObject WAIT_FAILED. Funktionerna WSAEnumNetworkEvents och WSAWaitForMultipleEvents misslyckas med ett WSA_INVALID_HANDLE-fel efter anrop till funktionen closesocket .
Obs! Icke-blockerande closesocket funktion initierar socket korrekt avslutning. Den här processen kan innebära att vissa data exchange. Den anropande drivrutinen måste kunna använda funktionerna WSAWaitForMultipleEvents och WSAEnumNetworkEvents för att vänta på rätt socket avslutning.
Lösning
Information om hämtning
I Windows Embedded kompakt 7 månatliga Update(January 2015) är nu tillgänglig från Microsoft. Om du vill hämta uppdateringen månatliga finns på följande Microsoft Download Center-webbplats:
Windows Embedded kompakt 7 uppdateringar
Vilken typ av processor som avser varje fil visas namnet på varje fil i avsnittet "Filinformation".
Mer Information
Krav på omstart
När du har installerat den här uppdateringen måste du utföra en ren build-version av hela plattformen. Genom att använda någon av följande metoder:
-
Klicka på Ren lösningpå Build -menyn och sedan på Build Solution.
-
Klicka på Återskapa lösningpå Build -menyn.
Du behöver inte starta om datorn när du har installerat denna uppdatering.
Information om vad uppdateringen ersätter
Den här uppdateringen ersätter inte några andra uppdateringar.
Den engelska versionen av det här programuppdateringspaketet har de filattribut (eller senare filattribut) som visas i följande tabell. Datum och tider för dessa filer anges i UTC-tid (UTC). När du visar filinformationen konverteras den till lokal tid. Använd fliken tidszon i datum och tid på Kontrollpanelen om du vill se skillnaden mellan UTC-tid och lokal tid.
Filer som ingår i det här snabbkorrigeringspaketet
Filnamn |
Storlek |
Datum |
Tid |
Sökväg |
---|---|---|---|---|
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 har bekräftat att detta är ett problem i Microsoft-produkterna som nämns i avsnittet "Gäller".
Referenser
Lär dig mer om standardterminologin som används för att beskriva Microsoft-programuppdateringar.