You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error PInvoke000: An internal error occurred: Failed while generating extern method: LocalFree. Failed while generating SafeHandle for LocalFree. Return type HLOCAL on release method LocalFree not supported.
This happens when using LocalFree with newer Microsoft.Windows.SDK.Win32Metadata packages. Older packages were fine.
Thanks for reporting. It's actually quite common for newer metadata versions to include breaking changes that CsWin32 must accommodate. We can keep this issue active till CsWin32 ships an update that references the new metadata.
Actual behavior
error PInvoke000: An internal error occurred: Failed while generating extern method: LocalFree. Failed while generating SafeHandle for LocalFree. Return type HLOCAL on release method LocalFree not supported.
This happens when using
LocalFree
with newer Microsoft.Windows.SDK.Win32Metadata packages. Older packages were fine.Expected behavior
It should work.
Repro steps
NativeMethods.txt
content:NativeMethods.json
content (if present):Context
LangVersion
(if explicitly set by project): latestThe text was updated successfully, but these errors were encountered: