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

handling ref and out parameters in .NET functions. #26

Open
kinsung opened this issue Sep 16, 2024 · 1 comment
Open

handling ref and out parameters in .NET functions. #26

kinsung opened this issue Sep 16, 2024 · 1 comment

Comments

@kinsung
Copy link

kinsung commented Sep 16, 2024

In the project, there is no class that can handle the passing of function parameters as 'out' or 'ref' parameter objects. When using pointers in C++, the application crashes upon calling the function.

@Th3T3chn0G1t
Copy link
Contributor

@kinsung The current recommended usage is to use pointers w/ unsafe blocks on the C# side to pass any type not directly supported by the Coral type interface. This helps circumvent apparent calling convention issues when passing non-trivial objects across the managed boundary.

I will update you if this changes but atm it appears to be a .NET embedding issue. If you could try using pointers on both sides of the boundary does that solve your problem/usecase?

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

No branches or pull requests

2 participants