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
I was encountering an error where invoking p.getString(0) was returning a value of "I". Eventually I realized that the problem was that I was trying to access the Pointer outside of the function context that my pointer had been returned in. I can see why this would be a problem in retrospect, but I don't recall reading anything about Pointer liveliness when I read through the documentation.
Thanks.
The text was updated successfully, but these errors were encountered:
Aside from primitive array parameters having a “liveliness” scope of the native function call, there’s nothing JNA-specific about that sort of data validity.
Some functions may return heap-allocated memory, some may return statically-allocated memory, some may even (dangerously) return stack-based memory.
The Pointer itself merely represents a native address, and makes no guarantees about its validity or lifecycle.
I was encountering an error where invoking p.getString(0) was returning a value of "I". Eventually I realized that the problem was that I was trying to access the Pointer outside of the function context that my pointer had been returned in. I can see why this would be a problem in retrospect, but I don't recall reading anything about Pointer liveliness when I read through the documentation.
Thanks.
—
Reply to this email directly or view it on GitHub.
Motivation:
We should update to the latest quiche sha to consume fixes
Modifications:
- Update to 7eb57c4fc608932acc76c3ee2759c2e41e51d566
- Adjust pom.xml to be able to build
Result:
Use latest quiche commit
I was encountering an error where invoking p.getString(0) was returning a value of "I". Eventually I realized that the problem was that I was trying to access the Pointer outside of the function context that my pointer had been returned in. I can see why this would be a problem in retrospect, but I don't recall reading anything about Pointer liveliness when I read through the documentation.
Thanks.
The text was updated successfully, but these errors were encountered: