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 am using your instructions to create a CString in Rust, then return its into_raw() to C# and pass that back to Rust to be dropped, but when I go to drop it crashes the entire program. If I print the string at that pointer, it's garbage data. What could be happening?
The text was updated successfully, but these errors were encountered:
The CString section was written as an example of how the passing of CStrings would be done with this method signature.
It would be better to make it work properly...
I am using your instructions to create a
CString
in Rust, then return itsinto_raw()
to C# and pass that back to Rust to bedrop
ped, but when I go todrop
it crashes the entire program. If I print the string at that pointer, it's garbage data. What could be happening?The text was updated successfully, but these errors were encountered: