-
Notifications
You must be signed in to change notification settings - Fork 514
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
System.AccessViolationException Attempted to read or write protected memory #1841
Comments
Does this happen with any header or is specific to pcl? |
Thank you for reply. I have no idea about pcl cpp code or header dependencies, I'm new to cpp. A minimal project(require pcl-1.14.0 installed) : I had tried with some simple cpp code wrote by myself, and cppsharp works well. And I find this issue #1385 likely same problem but not resolved. |
Ok, then it looks like the native Clang parser integration code is crashing somewhere inside the pcl cpp code. The way to debug these is to compile CppSharp and LLVM in debug mode to be able to get accurate stack traces. This is not too difficult but requires a bit of time. Another approach might be to try to comment includes inside pcl code, until you figure out where exactly the code is crashing. |
I try to build from source, but failed.
|
I tried to install llvm in vs2022 workload, and it's failed to build c++ project CppSharp.CppParser; And tried to build llvm from source code follow https://github.com/mono/CppSharp/blob/main/docs/LLVM.md, It's failed again.
fail with:
Do I missing anything to setup development env for CppSharp? |
Brief Description
I want to generate csharp bindings for pcl-1.14.0 .
follow the doc:
And
Program.cs
as:run and output:
How can I fix this?
OS: Windows
IDE: VS2022
Used headers
Used settings
Target: MSVC
Stack trace or incompilable generated code
The text was updated successfully, but these errors were encountered: