-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[C#] Using C API fails at runtime when targeting .NET 4.7.2 #36812
Comments
…36813) ### What changes are included in this PR? The C API support in the C# library has been modified to work correctly on .NET 4.7.2. The tests have been modified to work correctly on .NET 4.7.2, though that platform is disabled by default as the Python interop seem to cause a hang when unloading the xUnit AppDomain. **This PR contains a "Critical Fix".** * Closes: #36812 Authored-by: Curt Hagenlocher <[email protected]> Signed-off-by: Weston Pace <[email protected]>
Can we verify this case in our verification script? |
I have a separate PR (#36818) which enables testing under .NET 4.7.2 under Windows. (Unfortunately, I didn't figure out how to do this in time to add it to the previous PR.) Arguably, a better approach would be to build for 4.7.2 on every platform but enable the test only under Windows. Unfortunately, I didn't have the time to figure out how to modify the CI scripts to manage that; they currently seem to run all the tests that are built which means that they would try to run the 4.7.2 tests even on platforms where it's not supported. |
…36813) The C API support in the C# library has been modified to work correctly on .NET 4.7.2. The tests have been modified to work correctly on .NET 4.7.2, though that platform is disabled by default as the Python interop seem to cause a hang when unloading the xUnit AppDomain. **This PR contains a "Critical Fix".** * Closes: #36812 Authored-by: Curt Hagenlocher <[email protected]> Signed-off-by: Weston Pace <[email protected]>
I see. |
…ework (apache#36813) ### What changes are included in this PR? The C API support in the C# library has been modified to work correctly on .NET 4.7.2. The tests have been modified to work correctly on .NET 4.7.2, though that platform is disabled by default as the Python interop seem to cause a hang when unloading the xUnit AppDomain. **This PR contains a "Critical Fix".** * Closes: apache#36812 Authored-by: Curt Hagenlocher <[email protected]> Signed-off-by: Weston Pace <[email protected]>
…ework (apache#36813) ### What changes are included in this PR? The C API support in the C# library has been modified to work correctly on .NET 4.7.2. The tests have been modified to work correctly on .NET 4.7.2, though that platform is disabled by default as the Python interop seem to cause a hang when unloading the xUnit AppDomain. **This PR contains a "Critical Fix".** * Closes: apache#36812 Authored-by: Curt Hagenlocher <[email protected]> Signed-off-by: Weston Pace <[email protected]>
Describe the bug, including details regarding any error messages, version, and platform.
The code fails with an error message along the lines of "Cannot marshal 'parameter #1': Pointers cannot reference marshaled structures. Use ByRef instead."
Component(s)
C#
The text was updated successfully, but these errors were encountered: