-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not run subscription!Info:0x00007FFB16EFCF19 处(位于 mqtt_install_test_vs.exe 中)有未经处理的异常: Microsoft C++ 异常: std::bad_alloc,位于内存位置 0x000000B68D9AE370 处。 #501
Comments
It's really hard to tell what's happening here, with pieces of code missing and others formatted in lots of different styles. It might be helpful if you can reduce this down to a minimal example that fails, posted in a text code block. This should be pretty small, since it seems to be failing right on the client construction. But the error from the console is pretty clear. The library is claiming that you're giving it a string that is not UTF-8. Are you using Unicode or wide char strings? Sorry I don't know much about Windows and MSVS, and how it is configured. |
I used had compiled the paho-maqtt-cpp lib with OpenSSL,I can not use the lib to test on vs2022!! this is info:
code:
fatal error image:
server test image:
install library info :
I tried a number of ways, including recompiling the library and using official routines, but the mqtt::async_client cli(SERVER_ADDRESS, CLIENT_ID); This code error, or memory allocation error, or throw exception prompt string error, please help me solve, thank you
The text was updated successfully, but these errors were encountered: