Description

Attempting to build the Engine using the Debug Editor configuration results in a build failure related to a string literal (error C2338: Formatting string must be a TCHAR array.). There are three checkfSlow() macro lines in ClientSession.cpp that include a string literal. These need to be enclosed in a TEXT() macro in order for this to compile successfully with the Debug Editor configuration.

REGRESSION:
No. This particular code is new in 4.22.

Steps to Reproduce
  1. Obtain a clean copy of the Engine source code.
  2. Run Setup.bat (if code obtained from GitHub) and GenerateProjectFiles.bat.
  3. Open the UE4 solution in Visual Studio.
  4. Set the configuration to Debug Editor.
  5. Select Build -> Build Solution.

RESULT:
The build will fail with the following error: error C2338: Formatting string must be a TCHAR array.

EXPECTED:
The build completes successfully.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-72996 in the post.

1
Login to Vote

Fixed
ComponentPixelStreaming
Affects Versions4.224.23
Target Fix4.23
Fix Commit6341059
Main Commit6890764
CreatedApr 18, 2019
ResolvedMay 7, 2019
UpdatedJul 23, 2019
View Jira Issue