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
returns a pointer to an unreferenced object. This is a memory bug.
When bytestring(s) occurs as an argument in ccall, this is not a problem since ccall is designed to keep a reference to the original un-converted arguments.
The text was updated successfully, but these errors were encountered:
Yes, cconvert(::Type{Ptr{Uint8}}, s::String) = bytestring(s) would work the same as in the Ptr{Ptr{T}} case, since ccall internally knows how to convert ByteStrings.
This conversion (currently at string.jl:47)
returns a pointer to an unreferenced object. This is a memory bug.
When
bytestring(s)
occurs as an argument in ccall, this is not a problem since ccall is designed to keep a reference to the original un-converted arguments.The text was updated successfully, but these errors were encountered: