Skip to content

CSharp Crash Fix: passing Struct through bindings as ref#215

Merged
gangatp merged 2 commits intodevelopfrom
gangatp/CSharp_Crash_fix
Jun 4, 2025
Merged

CSharp Crash Fix: passing Struct through bindings as ref#215
gangatp merged 2 commits intodevelopfrom
gangatp/CSharp_Crash_fix

Conversation

@gangatp
Copy link
Collaborator

@gangatp gangatp commented Feb 17, 2025

Fix: Memory corruption with C# [Csharp] bindings

3MFConsortium/lib3mf#284

When passing user-defined struct from CSharp bindings to C++, ref should be used to receive them as pointers in implementation side, if its not used it should be received as Value.

@gangatp gangatp merged commit 87aba24 into develop Jun 4, 2025
17 checks passed
@gangatp gangatp deleted the gangatp/CSharp_Crash_fix branch June 4, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants