locked
Visual Studio 2012 - Can't run any sample applications

    Question

  • I'm studying Windows 8 Metro Apps but I couldn't make any sample run without a crash just like the user mdcg posted in this thread: http://social.msdn.microsoft.com/Forums/en-ZA/winappswithnativecode/thread/846bd43c-6527-49bf-945a-3f57f0878962

    Unlike him I'm using Windows 8 Pro and Microsoft Visual Studio Premium 2012 Version 11.0.51106.01 Update 1.

    This is the method that caused the exception:

    [code]

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

    [/code]

    The value of errorMessage is empty.

    This is the call stack:

    > AssociationLaunching.exe!<lambda_a8955d91541a43a9f2417000e2b39597>::operator()(Platform::Object ^ sender, Windows::UI::Xaml::UnhandledExceptionEventArgs ^ e) Line 58 C++
      AssociationLaunching.exe!Platform::Details::__abi_FunctorCapture2<<lambda_a8955d91541a43a9f2417000e2b39597>,void,Platform::Object ^,Windows::UI::Xaml::UnhandledExceptionEventArgs ^>::Invoke(Platform::Object ^ __arg0, Windows::UI::Xaml::UnhandledExceptionEventArgs ^ __arg1) Line 864 C++
      AssociationLaunching.exe!Windows::UI::Xaml::UnhandledExceptionEventHandler::Invoke(Platform::Object ^ __param0, Windows::UI::Xaml::UnhandledExceptionEventArgs ^ __param1) C++
      AssociationLaunching.exe!Windows::UI::Xaml::UnhandledExceptionEventHandler::[Windows::UI::Xaml::UnhandledExceptionEventHandler::__abi_IDelegate]::__abi_Windows_UI_Xaml_UnhandledExceptionEventHandler___abi_IDelegate____abi_Invoke(Platform::Object ^ __param0, Windows::UI::Xaml::UnhandledExceptionEventArgs ^ __param1) C++
      Windows.UI.Xaml.dll!5d349c65() Unknown
      [Frames below may be incorrect and/or missing, no symbols loaded for Windows.UI.Xaml.dll]
      Windows.UI.Xaml.dll!5d349004() Unknown
      Windows.UI.Xaml.dll!5d3a6b67() Unknown
      Windows.UI.Xaml.dll!5d3a6c13() Unknown
      Windows.UI.Xaml.dll!5d1272f9() Unknown
      Windows.UI.Xaml.dll!5cfb825f() Unknown
      twinapi.dll!6b50b64f() Unknown
      twinapi.dll!6b50bb23() Unknown
      twinapi.dll!6b50b88e() Unknown
      SHCore.dll!742659e1() Unknown
      kernel32.dll!74db8543() Unknown
      ntdll.dll!76f6ac69() Unknown
      ntdll.dll!76f6ac3c() Unknown

    Friday, January 4, 2013 5:58 PM

All replies

  • Call stack with correct symbols:

    > AssociationLaunching.exe!<lambda_d4a48b47f13dedaf146fd9e154486ea2>::operator()(Platform::Object ^ sender, Windows::UI::Xaml::UnhandledExceptionEventArgs ^ e) Line 58 C++
      AssociationLaunching.exe!Platform::Details::__abi_FunctorCapture2<<lambda_d4a48b47f13dedaf146fd9e154486ea2>,void,Platform::Object ^ __ptr64,Windows::UI::Xaml::UnhandledExceptionEventArgs ^ __ptr64>::Invoke(Platform::Object ^ __arg0, Windows::UI::Xaml::UnhandledExceptionEventArgs ^ __arg1) Line 864 C++
      AssociationLaunching.exe!Windows::UI::Xaml::UnhandledExceptionEventHandler::Invoke(Platform::Object ^ __param0, Windows::UI::Xaml::UnhandledExceptionEventArgs ^ __param1) C++
      AssociationLaunching.exe!Windows::UI::Xaml::UnhandledExceptionEventHandler::[Windows::UI::Xaml::UnhandledExceptionEventHandler::__abi_IDelegate]::__abi_Windows_UI_Xaml_UnhandledExceptionEventHandler___abi_IDelegate____abi_Invoke(Platform::Object ^ __param0, Windows::UI::Xaml::UnhandledExceptionEventArgs ^ __param1) C++
      Windows.UI.Xaml.dll!DirectUI::CFTMEventSource<struct Windows::UI::Xaml::IUnhandledExceptionEventHandler,struct Windows::UI::Xaml::IApplication,struct Windows::UI::Xaml::IUnhandledExceptionEventArgs>::Raise(struct Windows::UI::Xaml::IApplication *,struct Windows::UI::Xaml::IUnhandledExceptionEventArgs *) Unknown
      Windows.UI.Xaml.dll!DirectUI::Application::RaiseUnhandledExceptionEventHelper(long,unsigned short *,unsigned int *) Unknown
      Windows.UI.Xaml.dll!DirectUI::ErrorHelper::CallAUHandler(unsigned int,unsigned int *,unsigned short * *) Unknown
      Windows.UI.Xaml.dll!DirectUI::ErrorHelper::ProcessUnhandledErrorForUserCode(long) Unknown
      Windows.UI.Xaml.dll!DirectUI::DXamlCore::EnsureCoreApplicationInitialized(void) Unknown
      Windows.UI.Xaml.dll!DirectUI::FrameworkView::Initialize(struct Windows::ApplicationModel::Core::ICoreApplicationView *) Unknown
      twinapi.dll!Windows::ApplicationModel::Core::CoreApplicationView::CreateAndInitializeFrameworkView(class Microsoft::WRL::ComPtr<struct Windows::ApplicationModel::Core::IFrameworkViewSource> &) Unknown
      twinapi.dll!CPackageDebugSettings::`vector deleting destructor'(unsigned int) Unknown
      SHCore.dll!COplockFileHandle::v_GetHandlerCLSID(void) Unknown
      kernel32.dll!BaseThreadInitThunk() Unknown
      ntdll.dll!RtlUserThreadStart() Unknown

    Friday, January 4, 2013 6:20 PM
  • Hi,

    Is there any failed when you installed Update 1? Maybe you can try to repair the Update 1.

    Best regards,
    Jesse


    Jesse Jiang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, January 7, 2013 8:02 AM
  • I reinstalled everything, but the problem persist. In another machine I have everything works fine.

    • Proposed as answer by Jesse Jiang Wednesday, January 9, 2013 2:06 AM
    Tuesday, January 8, 2013 12:11 PM