locked
Visual Studio 2012 - can't run example application

    Question

  • I have successfully installed and built my example project - I chose the C++ blank project.

    Without adding any line of code, I build the project and ran it. It builds successfully when when it comes to runtime, all I get is an empty screen followed by a crash.

    Here is where the debugger ends :

    void ::BlankExample::App::InitializeComponent()
    {
    #if defined _DEBUG && !defined DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
        UnhandledException += ref new Windows::UI::Xaml::UnhandledExceptionEventHandler(
            [](::Platform::Object^ sender, ::Windows::UI::Xaml::UnhandledExceptionEventArgs^ e)
            {
                (void)sender; // Unused parameter
                if (IsDebuggerPresent())
                {
                    ::Platform::String^ errorMessage = e->Message;
                    __debugbreak();
                }
            });
    #endif
    }

    and here is what I get onscreen :

    Well, I can't post any image. Anyway, my screen is a nice white crossed box in a full grey background.

    Wednesday, October 24, 2012 8:03 PM

All replies

  • Hi,

    I cannot reproduce your issue on my side, would you please show us the detail steps for this issue?

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Friday, October 26, 2012 2:32 AM