Skip to content
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

demo运行时有时出现踩内存Segment fault,有时会提前退出不等输入最后一个字符 #148

Open
CedarBetty opened this issue Jan 22, 2025 · 0 comments

Comments

@CedarBetty
Copy link

1:在运行examples/listenToKeys.cpp或examples/subscribeServices.cpp;
时,
遇到问题:1:概率性出现段错误问题
2:不输入最后一个getchar的字符而提前退出问题

CedarBetty added a commit to CedarBetty/nacos-sdk-cpp that referenced this issue Jan 22, 2025
1. we should clear buffer before we use getchar
CedarBetty added a commit to CedarBetty/nacos-sdk-cpp that referenced this issue Jan 22, 2025
1. we should clear buffer before we use getchar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant