Windows services 将Tcl应用程序作为Windows服务安装时出错

Windows services 将Tcl应用程序作为Windows服务安装时出错,windows-services,tcl,tcldevkit,Windows Services,Tcl,Tcldevkit,我正在尝试使用TclDevKit的TclServiceManager在我的Windows计算机上安装一个Tcl程序作为服务。我正在一步一步地遵循指南,但我遇到了很多问题 如果我尝试使用raw.tcl文件创建服务,则会出现以下错误: Error 1053: The service did not respond to the start or control request in a timely fashion. Windows could not start the <service

我正在尝试使用TclDevKit的TclServiceManager在我的Windows计算机上安装一个Tcl程序作为服务。我正在一步一步地遵循指南,但我遇到了很多问题

如果我尝试使用raw.tcl文件创建服务,则会出现以下错误:

Error 1053: The service did not respond to the start or control request in a timely fashion.
Windows could not start the <service name> service on Local Computer.
Error 1067: The process terminated unexpectedly. 
我遵循了这个问题的解决方案,以便在服务控制管理器终止程序之前给程序更多的启动时间;无济于事

然后我决定尝试使用TclApp包装程序,看看是否有效。正如指南所说,我使用了位于TclDevKit bin目录中的
base-tclsvc-win32-ix86.exe
前缀文件。以这种方式安装服务,然后尝试运行该服务,导致以下错误:

Error 1053: The service did not respond to the start or control request in a timely fashion.
Windows could not start the <service name> service on Local Computer.
Error 1067: The process terminated unexpectedly. 
为了检查源代码是否是问题所在,我尝试了另一个更简单的示例,它只是在特定目录中创建了一个文件:

set filePath "C:/some/path/here";
set fileName "Test.txt";

set file [open [file join $filePath $fileName] w];
puts $file "Hello, World";

close $file;
如果您只是从tclsh86.exe获取源代码,这两个程序都可以运行,但如果您尝试将它们作为服务分别展开和包装运行,则会出现上述错误


有什么想法吗

在服务中使用“服务器监听端口3000”可能不是一个好主意,因为默认情况下您没有一个工作的标准输出。这将解释“意外终止”。谢谢!我会尝试删除它,看看它是否工作!天哪,如果这是问题,我会感到非常欣慰和恼火的哈哈。