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

传输大文件问题 #56

Open
oopai opened this issue Apr 6, 2023 · 4 comments
Open

传输大文件问题 #56

oopai opened this issue Apr 6, 2023 · 4 comments

Comments

@oopai
Copy link

oopai commented Apr 6, 2023

自己加了传文件指针的post,但是文件一大(2.3G)服务端就会出错。

客户端加了post
post(const QNetworkRequest &request, QIODevice *data, const int &timeout = 30 * 1000);

服务端报错
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt.
You must not let any exception whatsoever propagate through Qt code.
If that is not possible, in Qt 5 you must at least reimplement
QCoreApplication::notify() and catch all exceptions there.

@188080501
Copy link
Owner

188080501 commented Apr 6, 2023

是使用JQNet一次post大文件吗?
报错是客户端报错还是服务端报错?

@oopai
Copy link
Author

oopai commented Apr 6, 2023

JQNet一次大文件 服务端报错

@188080501
Copy link
Owner

188080501 commented Apr 6, 2023

是32位还是64位
可能是一次分配不出那么大的内存,就抛异常了

@oopai
Copy link
Author

oopai commented Apr 6, 2023

64的

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

2 participants