Re: The Big Project I was working on
- Posted by Icy_Viking Jun 21, 2021
- 1022 views
ghaberek said...
Icy_Viking said...
The text still doesn't display correctly. I've tried using allocate_string and allocate_wstring().
It's possible that the library is not making a local copy of the string so it's just reading garbage from a dangling pointer.
Try removing the ,1 from allocate_string() so it won't auto-free the memory and see if that fixes it.
-Greg
What do you know, that fixed it. Still this is still a massive project to take on. Should I still free the meomry using free()?
EDIT: I found using free doesn't make the text scrambled. So its fine to use.