locked
Visual Studio 2012 - can`t run C++ blank example RRS feed

  • Question

  • Hello,

    I have successfully installed Visual Studio 2012 on Windows 8 Release Preview. I created a new project using the C++ Blank App (XAML).

    It builds ok, however whenever I try to run it, it breaks on the following code :

    void ::App2::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
    }

    I already asked the same question yesterday but I am not able to recover my previous account. If anyone finds my previous thread, please feel free to close it and consider this one instead.

    Thursday, October 25, 2012 11:32 AM

Answers

  • You have incompatible versions here. To run the RTM version of Visual Studio 2012 you need to have the RTM version of Windows 8. You cannot run Visual Studio RTM on the Windows 8 Release Preview.

    --Rob

    • Marked as answer by Jesse Jiang Wednesday, October 31, 2012 2:48 AM
    Sunday, October 28, 2012 12:23 AM
    Moderator

All replies

  • Hi Mickaël,

    I am moving your thread into the Building Windows Store apps with C++  Forum for dedicated support. Thanks for your understanding.

    Best Regards,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us

    Friday, October 26, 2012 7:38 AM
  • Are you using Windows 8 RTM and Visual Studio 2012 RTM?

    Raman Sharma | Program Manager, Visual C++ | @rasharm_msft

    (if my post has answered your question, please consider using the 'mark as answer' feature in the forums to help others)

    Friday, October 26, 2012 5:08 PM
  • No, i'm using the Release Preview of Windows 8. 

    Here is the exact version of Visual Studio i'm using : Version 11.0.50727.1 RTMREL

    and the Windows version : Windows 8 Release Preview Evaluation copy Build 8400.

    Friday, October 26, 2012 5:45 PM
  • You have incompatible versions here. To run the RTM version of Visual Studio 2012 you need to have the RTM version of Windows 8. You cannot run Visual Studio RTM on the Windows 8 Release Preview.

    --Rob

    • Marked as answer by Jesse Jiang Wednesday, October 31, 2012 2:48 AM
    Sunday, October 28, 2012 12:23 AM
    Moderator