Preventing Rust from deallocating the memory

i fixed the problem smth! was replacing the pointer which was pointing to raw C data by another pointer , thats why std::mem::ManuallyDrop was not working

thanks you all , for your suggestions

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.