clock format does not run in window service



Hello!

I have the following problem. I make a windows service with the dev kit 4.1. with base-tclsvc-win32-ix86.exe. I run it under Win XP.

My test program without any packages:
puts "1"
puts [clock format [clock seconds] -format %H:%M%:%S]


After wrapping ist into an exe, I get the following messages:
C:\Scripte\Testservice>testservice.exe -debug
1
application-specific initialization failed: wrong # args: should be "source file
"

% puts $errorInfo
wrong # args: should be "source file"
while executing
"source C:/Scripte/Testservice/testservice.exe/main.tcl"
("uplevel" body line 1)
invoked from within
"uplevel #0 $script"
(procedure "tclSvcInit" line 15)
invoked from within
"tclSvcInit"


Now I do the following command in command line

% clock format
wrong # args: should be "source file"

% puts $errorInfo
wrong # args: should be "source file"
while executing
"source -encoding utf-8 [file join $TclLibDir clock.tcl]"
(procedure "::tcl::clock::format" line 3)
invoked from within
"clock format"

Who knows, what goes wrong?

Thank you very much.
Jens
.



Relevant Pages