Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix URFW auto-init reference to EnsureIsLoaded() #2501

Merged
merged 1 commit into from
May 12, 2022

Conversation

DrusTheAxe
Copy link
Member

URFW auto-initializers were incorrectly referencing UndockedRegFreeWinRT_EnsureIsLoaded() when it should have been WindowsAppRuntime_EnsureIsLoaded(). This was usually harmless to the C++ auto-init but fatal to C# :-(

@DrusTheAxe
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@DrusTheAxe DrusTheAxe enabled auto-merge (squash) May 12, 2022 07:54
@DrusTheAxe DrusTheAxe merged commit 883570f into main May 12, 2022
@DrusTheAxe DrusTheAxe deleted the user/drustheaxe/EnsureIsLoaded-fix-name branch May 12, 2022 08:52
sachintaMSFT added a commit that referenced this pull request May 12, 2022
…elf-contained (#2502)

* Fix UndockedRegFreeWinRT auto-initializer issues (#2476)

* Fix bad filename

* No precompiledheaders when compiling the auto-initializer

* Some refinements on the UndockedRegFreeWinRT self-contained and auto-initialization support (#2493)

* UrfwInitialize() didn't report if ExtRoLoadCatalog() errored and returned a failing HRESULT (only trapped thrown exceptions, but the implementation does both) (#2498)

* Remove C# auto-initialization check for reflection (#2500)

* Remove the 'if (Assembly.GetEntryAssembly() != Assembly.GetExecutingAssembly()) { return; }' shortcircuit as it catches loading for reflection AND for common test cases e.g. 'te.exe foo.dll' as auto-initialization isn't restricted to exes (i.e. it gets compiled into foo.dll) and then Entry!=Executing. Revert this for now and restore later when #2456 is addressed (by restrcting auto-init to only compile into exes)

* Fix typo

* Fix URFW auto-init reference to EnsureIsLoaded() (#2501)

Co-authored-by: Howard Kapustein <howardk@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants