Many thanks, I can see what's happening now.
This is resolved now, it was caused by free(fontname); after assigning the constant.
This is resolved now, it was caused by free(fontname); after assigning the constant. It's interesting that it wasn't a problem with the 32-bit compiler.
Additional.
Minor string assignment change works when compiled as 32-bit, compiles but crashes when compiled as 64-bit