[WP8.1] Windows Phone 8.1混合应用程序在Windows 10中崩溃 [英] [WP8.1]Windows Phone 8.1 Hybrid App Crashes in Windows 10

查看:74
本文介绍了[WP8.1] Windows Phone 8.1混合应用程序在Windows 10中崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS 2013 Pro中创建了非常简单的混合应用程序(文件>新>项目> WebView应用程序(Windows Phone))。

I've created very simple hybrid app in VS 2013 Pro (File > New > Project >WebView App (Windows Phone) ).

我所做的唯一改变是编辑index.html以包含以下代码:

The only change I've made is to edit index.html to contain the following code:

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="css/phone.css" />
    <title>Windows Phone</title>
</head>
<body>
    <div>
        MY APPLICATION
    </div>
   <select id="sel1">
       <option>test 1</option>
       <option>test 2</option>
       <option>test 3</option>
       <option>test 4</option>
       <option>test 5</option>
       <option>test 6</option>
       <option>test 7</option>
       <option>test 8</option>
       <option>test 9</option>
       <option>test 0</option>
   </select>

</body>
</html>

当我将应用程序部署到运行Windows Phone 10(版本:1511,操作系统版本:10.0.14295.1000)的Lumia 930时,它会构建

When I deploy the app to my Lumia 930 running Windows Phone 10 (Version: 1511, OS Build: 10.0.14295.1000) it builds and deploys fine.

当我从手机上运行应用程序并打开选择框并且不要选择一个选项时,应用程序将在大约4秒后崩溃。

When I run the app from the phone and open the select box and DO NOT select an option, the app will crash after about 4 seconds.

如果我从VS 2013调试设备,应用程序将不会崩溃并按预期工作(!)

If I debug the device from VS 2013 the app wont crash and works as expected(!)

任何人都知道为什么会出现这种情况?我很困惑,因为它在VS 2013的调试模式下工作正常,我不知道该怎么做才能找到原因(Windows Phone开发新手)。

Anyone any idea why this might be the case? I'm baffled and as it works fine in debug mode from VS 2013 I don't know what to do to try and find the cause (new to Windows Phone development).

任何帮助非常感谢:)

推荐答案

刚刚测试了我的简单混合应用程序在Lumia 1520 runninf Windows Phone 10(版本:1511,操作系统版本:10.0.10586.107)

Just tested my simple hybrid app on a Lumia 1520 runninf Windows Phone 10 (Version: 1511, OS Build: 10.0.10586.107)

相同的结果  - 当我从手机上运行应用程序并打开选择框并且不选择选项时应用程序崩溃,应用程序将在大约4秒后崩溃。

Same result  - app crashes when I run the app from the phone and open the select box and DO NOT select an option, the app will crash after about 4 seconds.


这篇关于[WP8.1] Windows Phone 8.1混合应用程序在Windows 10中崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆