Crash on pressing play

I thought I was being smart and used “auto” instead of “FString”. Sometimes it worked okay, but gave funny ascii characters in the output. Other times, it just crashed outright and put up a fault dialog to send diagnostic info to Epic.

Lesson learned: use appropriate classes when programming in Unreal Engine.

Is that the only change you did to the code compared to Ben?

I also get crashes when pressing play, but code compiles fine

Yeah, pretty much. I think that auto only uses standard C++ primitives and structures. I may be wrong, but when I put it back to FString, it stopped crashing.

Privacy & Terms