A
A
alexey7342014-05-30 13:57:55
Qt
alexey734, 2014-05-30 13:57:55

Why is the service not starting with qtservice?

I am writing a service on Qt, downloaded https://github.com/qtproject/qt-solutions/tree/mas... .
Collected examples, the service (exe) is installed, visible in the Services.
When trying to start via Services, the error is:

Не удалось запустить службу Qt HTTP Daemon на Локальный компьютер.
Ошибка 1053: Служба не ответила на запрос своевременно.

Launch via console:
C:\WebServers\qtservice\examples\build-server-Desktop_Qt_5_2_1_MSVC2012_64bit-Re
lease\release>httpservice.exe -i
The service Qt HTTP Daemon is already installed

C:\WebServers\qtservice\examples\build-server-Desktop_Qt_5_2_1_MSVC2012_64bit-Re
lease\release>httpservice.exe -s
The service Qt HTTP Daemon could not start

C:\WebServers\qtservice\examples\build-server-Desktop_Qt_5_2_1_MSVC2012_64bit-Re
lease\release>httpservice.exe -e
Listening...

System: Windows 7, 64, Qt Creator 3.1, Qt 5.2.1
Placed Qt libraries in the directory with the application
When debugging
httpservice.exe -e:
Line 799 in qtcervice.cpp: int ec = d_ptr->run(false, d_ptr-> args);
Debug Error!

Program: C:\Qt\5.2.1\msvc2012_64\bin\Qt5Cored.dll
Module: 5.2.1
File: global\qglobal.cpp
Line: 2096

ASSERT: "allArguments.size() == origArgc" in file kernel\qcoreapplication.cpp, line 2137

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question