In Visual Studio 2015 Update 3, ich habe ein JavaScript -> Windows -> Windows 8 -> Windows Phone -> Blank App (Windows Phone)
Projekt erstellt. Ich änderte dann die default.html
ein <select>
Element wie folgt enthalten:Cordova/UWP Windows Mobile 10 Zugriffsverletzung auf HTML Element auswählen
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>App1</title>
<!-- WinJS references -->
<!-- At runtime, ui-themed.css resolves to ui-themed.theme-light.css or ui-themed.theme-dark.css
based on the user’s theme setting. This is part of the MRT resource loading functionality. -->
<link href="/css/ui-themed.css" rel="stylesheet" />
<script src="//Microsoft.Phone.WinJS.2.1/js/base.js"></script>
<script src="//Microsoft.Phone.WinJS.2.1/js/ui.js"></script>
<!-- App1 references -->
<link href="/css/default.css" rel="stylesheet" />
<script src="/js/default.js"></script>
</head>
<body class="phone">
<select>
<option>Val</option>
<option>Val</option>
<option>Val</option>
<option>Val</option>
</select>
</body>
</html>
Wenn auf dem ausgewählten Element tippen, stürzt die Anwendung auf Windows Mobile 10 mit:
'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/2.0)'.
The program '[3976] WWAHost.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.
Diese auf Geräten geschieht und der Windows Mobile 10-Emulator. Windows Phone 8 scheint dieses Problem nicht zu haben. Bis vor kurzem funktionierte das auch auf Windows Mobile 10. Vielleicht hat ein Update das verursacht? Interessanterweise sind Cordova und UWP ebenfalls betroffen. Gibt es eine bekannte Lösung?
Dies ist 10.0.14393; Jubiläumsupdate. –