Hi,
I compiled the simple application and it starts.
Then I created a simple Qt console application that uses QCoreApplication and it is not started by the service.
Thanks,
Hi,
I compiled the simple application and it starts.
Then I created a simple Qt console application that uses QCoreApplication and it is not started by the service.
Thanks,
Òscar Llarch i Galán
Hi,
I copied the Qt libs on the application dir and the QCoreApplication starts.
Then I tryied to create a QApplication and it starts.
Finally tryied my application and starts.
So, I think that when start the application by a Windows Service, the libs must be on the "system32" dir or on the same dir of the application.
Thanks wysota,
Òscar Llarch i Galán
Hi,
The QTDIR path is set as User variable on Windows, so if the service is started as "LocalSystem" it don't have QTDIR path so when try to start my application don't work.
So one solution could be to set the QTDIR on the Path of the system instead of the path of the current user.
Second solution is to copy the Qt libs into the "system32" folder where are the system libs.
Third solution is to copy the Qt libs on the application directory.
![]()
Òscar Llarch i Galán
As I said - a path problem. Your libs must be accessible, regardless of system configuration. The only safe place to put them is system32 directory.
Hi,
Thanks for help,
Òscar Llarch i Galán
Bookmarks