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

连接上就停止运行 #1

Open
JKLHJ opened this issue Aug 4, 2017 · 7 comments
Open

连接上就停止运行 #1

JKLHJ opened this issue Aug 4, 2017 · 7 comments

Comments

@JKLHJ
Copy link

JKLHJ commented Aug 4, 2017

我重新编译过也是一样,代码哪里有问题吗?可否帮我解决一下?

@UndefinedIdentifier
Copy link
Owner

你的环境是什么?有详细的截图?

@JKLHJ
Copy link
Author

JKLHJ commented Aug 4, 2017

用过windows10 和win2008r2 运行都是输入完密码快连上的时候停止运行!
我编译的也是,用的vs2015编译,一开始我以为版本太高,就用vc6.0编译了,也是一样。
重要的是我直接运行你编译好的文件还是停止运行! @987432340

@JKLHJ
Copy link
Author

JKLHJ commented Aug 4, 2017

可以留个qq什么的联系一下吗?
我用vs6.0编译出来的是和你的一模一样的大小57344字节

@JKLHJ
Copy link
Author

JKLHJ commented Aug 5, 2017

error1
error2
每次错误都是这个代码
刚自学c++不太懂怎么调试程序,你能帮助我吗?
error3
error4
这是我调试的结果

@JKLHJ JKLHJ closed this as completed Aug 5, 2017
@JKLHJ JKLHJ reopened this Aug 5, 2017
@UndefinedIdentifier
Copy link
Owner

@JKLHJ 错误码表示内存没有写权限,可参考:https://stackoverflow.com/questions/17168982/exception-error-c0000005-in-vc
你可以先试试兼容模式,看看是否能正常工作?
另外,当时写这个代码的时候是在xp的机器上,仅测试了xp和win7可工作,杀软不报毒。

@JKLHJ
Copy link
Author

JKLHJ commented Aug 8, 2017

@987432340 这个问题我查阅过资料,是指向了一个空的或无效的指针,兼容模式无效。我已经定位出错误位置的语句,但不知道如何更正!

@plh97
Copy link

plh97 commented Aug 13, 2018

hahah

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

3 participants