Failed to load brotlidec.dll with LoadPackagedLibrary in UWP x86 Release mode #340

Closed
opened 2026-01-29 20:42:15 +00:00 by claunia · 0 comments
Owner

Originally created by @ryancheung on GitHub (Aug 31, 2020).

I use vcpkg to get brotlidec.dll and brotlicommon.dll. And I tried to load them in a UWP dotnet project with PInvoke. It failed to load brotlidec.dll with LoadPackagedLibrary in x86 release mode, but it works in x64 release mode, and it also works to loading brotlicommon.dll in x86 release mode. It's just odd.

Here is a sample project for testing: https://github.com/ryancheung/FreeTypeUWPSample

Originally created by @ryancheung on GitHub (Aug 31, 2020). I use vcpkg to get `brotlidec.dll` and `brotlicommon.dll`. And I tried to load them in a UWP dotnet project with PInvoke. It failed to load `brotlidec.dll` with `LoadPackagedLibrary` in x86 release mode, but it works in x64 release mode, and it also works to loading `brotlicommon.dll` in x86 release mode. It's just odd. Here is a sample project for testing: https://github.com/ryancheung/FreeTypeUWPSample
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#340