当主要应用程序中的页面被share charm启动的页面引用时,应用程序崩溃 [英] App crash when a page in main app is referenced by page launched by share charm

查看:80
本文介绍了当主要应用程序中的页面被share charm启动的页面引用时,应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序:



  • 当应用程序正常启动时显示的默认页面,并且有一个特定的按钮
  • 共享页面,当您的应用程序是共享目标时启动(例如,您的应用程序从其他应用程序接收图像)
  • 主页面的静态实例引用存储在名为MainPageInstance
  • <的变量的App类中/ ul>

    如果我执行以下操作,应用程序崩溃:


    1. 通常从磁贴启动应用程序,构建主页并变量  ; MainPageInstance设置为主页面实例
    2. 切换到MSDN示例共享源,与应用程序共享图像,共享页面启动
    3. 在共享页面中,我需要禁用主页面上的按钮,我尝试通过MainPageInstance.button.isEnable = false执行此操作
    4. 应用程序崩溃。

    这是预期的吗?有人帮忙吗?



    解决方案

    我们有一个已知错误,共享目标在调试时崩溃。 这是你的情景吗?


    I have an app with:

    • Default page shown when app launches normally and has a particular Button
    • Share page, launched when your app is the Share target (ex. your app receives images from another app)
    • Static instance reference of Main page is stored in App class in a variable called MainPageInstance

    If I do the following, the app crashes:

    1. Launch app normally from tile, Main page is constructed and variable MainPageInstance gets set to Main page instance
    2. Switch to MSDN sample Share Source, share an image with the app, the Share page gets launched
    3. In the Share page I need to disable the Button on the Main page and I try to do this through MainPageInstance.button.isEnable = false
    4. App crashes.

    Is this expected? Anyone help?

    解决方案

    We have a known bug with Share targets crashing while being debugged.  Is this your scenario?


    这篇关于当主要应用程序中的页面被share charm启动的页面引用时,应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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