RTC Forums
November 24, 2024, 03:27:06 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Login
Register
RTC Forums
>
Subscription
>
Support
>
how to run rtc application on windows server 2008 r2
Pages: [
1
]
« previous
next »
Print
Author
Topic: how to run rtc application on windows server 2008 r2 (Read 4542 times)
mteirek
RTC Expired
Posts: 9
how to run rtc application on windows server 2008 r2
«
on:
May 21, 2015, 02:17:39 PM »
1- server application built with rtc in 5 minutes -> server_02.exe
2- server work nice in localhost
3- upload to my server ( Windows server 2008 r2 )
4- Gui-application run fine when i run exe from command line
i try to run this app as service :
1- sc create "rtcserver" binPath="C:\rtc\server_02.exe"
-> [SC] CreateService SUCCESS
2- sc start "rtcserver"
-> [SC] StartService FAILED 1053 :
-> the service did not resond to the start or control request in a timely fashion.
any help please
Logged
D.Tkalcec (RTC)
Administrator
Posts: 1881
Re: how to run rtc application on windows server 2008 r2
«
Reply #1 on:
May 21, 2015, 02:54:19 PM »
Look at the RTC WebServer Demo Project for an example on writing a Delphi Application which can run as a normal GUI process (using a Form) or as a Windows Service (using a Service Module). Take a closer look at the Project Source Code (DPR file) to see how you can distinguish between a "Desktop" and a "Service" mode (they are not the same) to create and run the appropriate Application module.
NOTE: Windows Services do NOT automatically create a message queue, which is required for RTC components. To make sure your process will be running as a Windows Service, you need to set the "MultiThreaded" property on the TRtcHttpServer component to TRUE and make sure that your code is thread-safe.
Best Regards,
Danijel Tkalcec
Logged
mteirek
RTC Expired
Posts: 9
Re: how to run rtc application on windows server 2008 r2
«
Reply #2 on:
May 21, 2015, 05:59:15 PM »
RTC WebServer Demo work nice as service.
now i need to isolate the Windows-service part from the project to work with it
best rgards
mteirek
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Dashboard
-----------------------------
=> General
=> 3rd-Party
=> Quick Start
-----------------------------
Subscription
-----------------------------
=> Support
Loading...