locked
How to open mutiple Metro App app from one another app RRS feed

  • Question

  • Hi all,

    I have a question, my application in metro app is only run correct requirement when I run in debug mode (because I using Protocol &  Windows.System.Launcher.LaunchUriAsync(_Uri) to open multiple metro app). So I see the main reason why debug mode run correct is command line  this.DebugSettings.EnableFrameRateCounter = true;  on OnLaunch event.

    So my question is may i using this.DebugSettings.EnableFrameRateCounter = false; outside

    #if DEBUG
                if (System.Diagnostics.Debugger.IsAttached)
                {
                    this.DebugSettings.EnableFrameRateCounter = true;
                }
    #endif

    and what have any problem if i my app go to Microsoft Store ?

    Thanks so much.

    Sunday, April 19, 2015 12:29 AM

Answers

  • Hi Duc.M.Bui,

    The code snippet inside #if DEBUG will only runs when the app is under debug. And the code inside will not be compiled in IL when release.

    See the remark section of DebugSettings class:

    Not all modes enabled by DebugSettings require that a debugger is attached. For example, the frame-rate counter associated with EnableFrameRateCounter will appear in an app that runs with that setting even if you activate it as a tile without the debugger.

    Don't leave any DebugSettings properties explicitly set in your production code.

    This should explain to you everything :) hope helps.

    --James


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, April 20, 2015 2:55 AM
    Moderator