Login Page - Create Account

Support Board


Date/Time: Thu, 16 Jan 2025 21:56:14 +0000



Post From: v1644 SCString.Format() corruption

[2017-11-20 11:52:56]
DabbaDo - Posts: 148
Edit: Ignore this. Started working okay when I rebooted then restarted VS2017. Ugh!

This was working for me in some earlier version.


SCString tmp = "Test";
tmp.Format("%s", tmp.GetChars()); // tmp is corrupted

SCString bad = "Prefix";
SCString good;
good.Format("%s %s", bad.GetChars(), "Suffix"); // this is okay "Prefix Suffix"
bad.Format("%s %s", bad.GetChars(), "Suffix"); // this gives [garbage] plus "Suffix"

Perhaps something changed in my environment? Or maybe this is new behavior?

Thanks,
Dale
Date Time Of Last Edit: 2017-11-20 12:01:00