Title: how to run rtc application on windows server 2008 r2 Post by: mteirek 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 Title: Re: how to run rtc application on windows server 2008 r2 Post by: D.Tkalcec (RTC) 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 Title: Re: how to run rtc application on windows server 2008 r2 Post by: mteirek 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 |