jbeder / yaml-cpp

A YAML parser and emitter in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running under the Chinese folder throws an exception

northgreen opened this issue · comments

When I run my project in the Chinese folder,the line YAML::Node yaml = YAML::LoadFile(P);reports an error :

Exception at 0x7ff967944d8c, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in MSVCP140!std::_Xlength_error

Exception at 0x7ff967944d8c, code: 0xe06d7363: C++ exception, flags=0x81 in MSVCP140!std::_Xlength_error

From my subsequent debugging results, I found that it was probably a problem with your project or MSVC, but how should this be solved?

I used the source code recently downloaded by the master of yaml-cpp, and used visual studio 2019 for compilation.

Stack Overflow.