Crash when define DISABLE_XAML_GENERATED_MAIN #5898
shelllet
started this conversation in
Dev team discussions
Replies: 1 comment 10 replies
-
You shouldn't be calling MddBootstrapInitialize when the project is set to self contained. MddBootstrapInitialize will attempt to add a reference to the framework version of the Windows App Runtime, not the self contained version. You shouldn't have to do anything at all for self contained, the build system should automatically be compiling in the necessary initialization files and so the Windows App Runtime should just be usable. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
when i call
TextRecognizer::EnsureReadyAsync()
in self-contained app , it throwhresult_access_denied
, so i defineDISABLE_XAML_GENERATED_MAIN
macro and implement main function manuall like thisthe code executes to
::winrt::Microsoft::UI::Xaml::Application::Start()
, a subsequent crash in a self-contained/unpackaged windowsappsdk 1.8.1 c++ app.Beta Was this translation helpful? Give feedback.
All reactions