Set_window_title() causes exception

Trying to compile the Panda Hello World tutorial. Builds and links fine, but crashes on the following line:

framework.set_window_title("My Panda3D Window");

Without it runs fine. What causes this?

Panda version: 1.10.4.1-x64
Microsoft VS 2019

Are you compiling in Release mode? And have you removed the NDEBUG symbol from the preprocessor definitions?

Hello. I am building in Debug configuration. I haven’t figured out where does MSVS 2019 adds this directive. Indeed, it works in Release mode.

Is it possible to compile in Debug configuration?