GetPropertyText fails beyond 1024+x chars
Posted: Wed Oct 10, 2018 4:23 am
GetPropertyText() causes an UT crash if the text exceeds 1024+some more. Is there a possibility to clamp the text at - lets say 1023 characters?
Core of my test code (there is a SpecialEvent with a text of a length of 1030):
Test map is attached (beware - it will crash your UT if you touch the Trigger.)
Core of my test code (there is a SpecialEvent with a text of a length of 1030):
Code: Select all
if (FindActorByName('SpecialEvent0', SE)) {
// this works:
//TextLen = Len(SpecialEvent(SE).Message);
// but this not:
TextLen = Len(SE.GetPropertyText("Message"));
BroadcastMessage(SE @ "text lenght is" @ TextLen);
}