Coder Social home page Coder Social logo

windows-appsample-xaml-hosting's Introduction

windows-appsample-xaml-hosting's People

Contributors

johanlindfors avatar joshuapartlow avatar karlerickson avatar microsoft-github-policy-service[bot] avatar stevewhims avatar supernova-eng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

windows-appsample-xaml-hosting's Issues

Controls not appearing with Windows Insider

I created a HyperV VM with Windows Insider 18290, Windows Insider SDK 18298 and Visual Studio 2017 Community Edition. When running the code on that none of the controls display, just the text that indicate what the controls are. What am I doing wrong?

50387227-6929cf00-06ac-11e9-824e-7244cb5bcda2

Build fails with: class template optional is only available with C++17 or later.

I'm on 17673, with VS 15.9 Preview 3 and RS5 SDK.

The build fails with:

1>------ Build started: Project: XamlHostingSample, Configuration: Debug Win32 ------
1>Main.cpp
1>class template optional is only available with C++17 or later.
1>string_view is only available with C++17 or later.
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\windowsnumerics.impl.h(36): error C2429: language feature 'nested-namespace-definition' requires compiler flag '/std:c++17'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\windowsnumerics.inl(137): error C2429: language feature 'nested-namespace-definition' requires compiler flag '/std:c++17'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\cppwinrt\winrt\base.h(124): error C2429: language feature 'nested-namespace-definition' requires compiler flag '/std:c++17'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\cppwinrt\winrt\base.h(142): error C2429: language feature 'nested-namespace-definition' requires compiler flag '/std:c++17'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\cppwinrt\winrt\base.h(181): error C2429: language feature 'nested-namespace-definition' requires compiler flag '/std:c++17'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\cppwinrt\winrt\base.h(397): error C2429: language feature 'nested-namespace-definition' requires compiler flag '/std:c++17'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\cppwinrt\winrt\base.h(434): error C2429: language feature 'nested-namespace-definition' requires compiler flag '/std:c++17'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\cppwinrt\winrt\base.h(481): error C2429: language feature 'nested-namespace-definition' requires compiler flag '/std:c++17'

When I added the /std:c++17' flag, the build also fails with a Link error:

1>------ Build started: Project: XamlHostingSample, Configuration: Debug Win32 ------
1>Main.cpp
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\cppwinrt\winrt\impl\windows.ui.xaml.media.animation.0.h(2016): warning C4002: too many arguments for function-like macro invocation 'GetCurrentTime'
1>Main.obj : error LNK2019: unresolved external symbol _WINRT_GetRestrictedErrorInfo@4 referenced in function "public: __thiscall winrt::hresult_error::hresult_error(struct winrt::hresult,struct winrt::hresult_error::from_abi_t)" (??0hresult_error@winrt@@QAE@Uhresult@1@Ufrom_abi_t@01@@Z)
1>Main.obj : error LNK2019: unresolved external symbol _WINRT_RoGetActivationFactory@12 referenced in function "__cdecl winrt::get_activation_factory<struct winrt::Windows::Foundation::IActivationFactory>(struct winrt::param::hstring const &)" (??$get_activation_factory@UIActivationFactory@Foundation@Windows@winrt@@@winrt@@YA@ABUhstring@param@0@@Z)
1>Main.obj : error LNK2019: unresolved external symbol _WINRT_RoInitialize@4 referenced in function "void __cdecl winrt::init_apartment(enum winrt::apartment_type)" (?init_apartment@winrt@@YAXW4apartment_type@1@@Z)
1>Main.obj : error LNK2019: unresolved external symbol _WINRT_RoOriginateLanguageException@12 referenced in function "private: void __thiscall winrt::hresult_error::originate(struct winrt::hresult,void *)" (?originate@hresult_error@winrt@@AAEXUhresult@2@PAX@Z)
1>Main.obj : error LNK2019: unresolved external symbol _WINRT_SetRestrictedErrorInfo@4 referenced in function "public: struct winrt::hresult __thiscall winrt::hresult_error::to_abi(void)const " (?to_abi@hresult_error@winrt@@QBE?AUhresult@2@XZ)
1>Main.obj : error LNK2019: unresolved external symbol _WINRT_WindowsCreateString@12 referenced in function "void * __cdecl winrt::impl::create_string(wchar_t const *,unsigned int)" (?create_string@impl@winrt@@YAPAXPB_WI@Z)
1>Main.obj : error LNK2019: unresolved external symbol _WINRT_WindowsCreateStringReference@16 referenced in function "public: __thiscall winrt::param::hstring::hstring(class std::basic_string_view<wchar_t,struct std::char_traits<wchar_t> > const &)" (??0hstring@param@winrt@@QAE@ABV?$basic_string_view@_WU?$char_traits@_W@std@@@std@@@Z)
1>Main.obj : error LNK2019: unresolved external symbol _WINRT_WindowsDeleteString@4 referenced in function "public: static void __cdecl winrt::impl::hstring_traits::close(void *)" (?close@hstring_traits@impl@winrt@@SAXPAX@Z)
1>Main.obj : error LNK2019: unresolved external symbol _WINRT_WindowsPreallocateStringBuffer@12 referenced in function "public: __thiscall winrt::impl::hstring_builder::hstring_builder(unsigned int)" (??0hstring_builder@impl@winrt@@QAE@I@Z)
1>Main.obj : error LNK2019: unresolved external symbol _WINRT_WindowsDeleteStringBuffer@4 referenced in function "public: __thiscall winrt::impl::hstring_builder::~hstring_builder(void)" (??1hstring_builder@impl@winrt@@QAE@XZ)
1>Main.obj : error LNK2019: unresolved external symbol _WINRT_WindowsPromoteStringBuffer@8 referenced in function "public: struct winrt::hstring __thiscall winrt::impl::hstring_builder::to_hstring(void)" (?to_hstring@hstring_builder@impl@winrt@@QAE?AUhstring@3@XZ)
1>Main.obj : error LNK2019: unresolved external symbol _WINRT_WindowsGetStringRawBuffer@8 referenced in function "public: __thiscall winrt::hstring::operator class std::basic_string_view<wchar_t,struct std::char_traits<wchar_t> >(void)const " (??Bhstring@winrt@@QBE?AV?$basic_string_view@_WU?$char_traits@_W@std@@@std@@XZ)
1>C:\code\Windows-appsample-Xaml-Hosting\Debug\XamlHostingSample.exe : fatal error LNK1120: 12 unresolved externals
1>Done building project "XamlHostingSample.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Crash when exiting app with debugger attached.

When running this sample with VS2017 or VS2019 debugger attached, I am experiencing a crash when exiting the app, as long as I have interacted with any of the UWP controls attached to the sample. We need guidance on how to properly clean up and shutdown when using XAML Islands.

AppCrash with MediaPlayer

When I lunch the app and select "MediaElement" it crashes with:

Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: XamlHostingSample.exe
P2: 0.0.0.0
P3: 5bbe9b42
P4: combase.dll
P5: 10.0.18254.1000
P6: aa72a7b2
P7: 80070057
P8: 0000000000091c32
P9: 
P10: 
Faulting application name: XamlHostingSample.exe, version: 0.0.0.0, time stamp: 0x5bbe9b42
Faulting module name: Windows.UI.Xaml.dll, version: 10.0.18254.1000, time stamp: 0xb74abca6
Exception code: 0xc000027b
Fault offset: 0x0000000000733852
Faulting process id: 0x37ac
Faulting application start time: 0x01d460fb90e47af4
Faulting application path: C:\code\Windows-appsample-Xaml-Hosting\x64\Debug\XamlHostingSample.exe
Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll
Report Id: 595f5bc8-a3a2-4684-bc54-92be6d699c77
Faulting package full name: 
Faulting package-relative application ID: 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.