Hi guys.
I've got issue as in topic, after deployment (I used windeployqt) my application
exits immediately when QNetworkManager::get() method is called.
That problem occurs on only one computer.
this->_versionUrl = url.value(key).toString();
...
this->_versionRequest.
setUrl(QUrl(this
->_versionUrl
));
...
void Patcher::request(const QNetworkRequest &request)
{
this->log(tr("Starting request: %1").arg(request.url().toString()));
this->_reply = this->_manager->get(request);
this->log(tr("After GET"));
this->connect(this->_reply, SIGNAL(error(QNetworkReply::NetworkError)),
this, SLOT(error(QNetworkReply::NetworkError)));
this->connect(this->_reply, SIGNAL(finished()),
this, SLOT(finished()));
this->connect(this->_reply, SIGNAL(downloadProgress(qint64,qint64)),
this, SLOT(updateProgressBar(qint64,qint64)));
}
this->_versionUrl = url.value(key).toString();
...
this->_versionRequest.setUrl(QUrl(this->_versionUrl));
...
void Patcher::request(const QNetworkRequest &request)
{
this->log(tr("Starting request: %1").arg(request.url().toString()));
this->_reply = this->_manager->get(request);
this->log(tr("After GET"));
this->connect(this->_reply, SIGNAL(error(QNetworkReply::NetworkError)),
this, SLOT(error(QNetworkReply::NetworkError)));
this->connect(this->_reply, SIGNAL(finished()),
this, SLOT(finished()));
this->connect(this->_reply, SIGNAL(downloadProgress(qint64,qint64)),
this, SLOT(updateProgressBar(qint64,qint64)));
}
To copy to clipboard, switch view to plain text mode
When I run my application directly after compilation, everything works fine.
My deployment folder contains following files:
│ icudt53.dll
│ icuin53.dll
│ icuuc53.dll
│ libgcc_s_dw2-1.dll
│ libstdc++-6.dll
│ libwinpthread-1.dll
│ patcher.ini
│ Qt5Core.dll
│ Qt5Gui.dll
│ Qt5Network.dll
│ Qt5SerialPort.dll
│ Qt5Svg.dll
│ Qt5Widgets.dll
│ qt_ca.qm
│ qt_cs.qm
│ qt_de.qm
│ qt_fi.qm
│ qt_hu.qm
│ qt_it.qm
│ qt_ja.qm
│ qt_lv.qm
│ qt_ru.qm
│ qt_sk.qm
│ qt_uk.qm
│ quazip.dll
│ MyApp.exe
│ updater.log
│ zlib1.dll
│
├───bearer
│ qgenericbearer.dll
│ qnativewifibearer.dll
│
├───iconengines
│ qsvgicon.dll
│
├───imageformats
│ qdds.dll
│ qgif.dll
│ qicns.dll
│ qico.dll
│ qjp2.dll
│ qjpeg.dll
│ qmng.dll
│ qsvg.dll
│ qtga.dll
│ qtiff.dll
│ qwbmp.dll
│ qwebp.dll
│
├───platforms
│ qminimal.dll
│ qoffscreen.dll
│ qwindows.dll
│ icudt53.dll
│ icuin53.dll
│ icuuc53.dll
│ libgcc_s_dw2-1.dll
│ libstdc++-6.dll
│ libwinpthread-1.dll
│ patcher.ini
│ Qt5Core.dll
│ Qt5Gui.dll
│ Qt5Network.dll
│ Qt5SerialPort.dll
│ Qt5Svg.dll
│ Qt5Widgets.dll
│ qt_ca.qm
│ qt_cs.qm
│ qt_de.qm
│ qt_fi.qm
│ qt_hu.qm
│ qt_it.qm
│ qt_ja.qm
│ qt_lv.qm
│ qt_ru.qm
│ qt_sk.qm
│ qt_uk.qm
│ quazip.dll
│ MyApp.exe
│ updater.log
│ zlib1.dll
│
├───bearer
│ qgenericbearer.dll
│ qnativewifibearer.dll
│
├───iconengines
│ qsvgicon.dll
│
├───imageformats
│ qdds.dll
│ qgif.dll
│ qicns.dll
│ qico.dll
│ qjp2.dll
│ qjpeg.dll
│ qmng.dll
│ qsvg.dll
│ qtga.dll
│ qtiff.dll
│ qwbmp.dll
│ qwebp.dll
│
├───platforms
│ qminimal.dll
│ qoffscreen.dll
│ qwindows.dll
To copy to clipboard, switch view to plain text mode
Bookmarks