Re: The Big Project I was working on

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu