I met an issue but can't find any relevant answer. I use visual studio 2022 to build a protobuf library, but when I call ParseFromString, it failed when gtest is included. When I call ParseFromString from a non gtest project, it worked well. I noticed that with gtest, the parameter for ParseFromString has been changed outside and inside this function. This is the string passed to ParseFromString [image: Capture.JPG] This is the string inside called ParseFromString: [image: Capture.JPG]
It works fine with "res = kaesConfig.ParseFromArray(str.c_str(), str.size());" Thanks! -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/967ecb9e-40c9-49ee-8b10-b79d02d059e5n%40googlegroups.com.
