tclkit and Tcl_SetResult

avs <[email protected]> Thu, 24 Jan 2008 08:20:18 -0800 (PST)
Newsgroups gmane.comp.lang.tcl.starkit
Message-ID <54ae16ef-d5ec-40e2-902d-4f8fdfd42fdd@l32g2000hse.googlegroups.com>
Hello All,

I have a question concerning usage of C libraries with tclkitsh.exe
under Windows:

I have a C library (it just returns mtime of the given file in UTC
format with the help of GetFileTime function).

Everything works under normal tclsh or wish, but if I try using this
library from tclkitsh.exe or tclkit.exe:
Application crashes during this command from C code:
Tcl_SetResult(interp, res, TCL_VOLATILE); This error is fatal, it
cannot be even catch from tcl code.

Changing TCL_VOLATILE to TCL_<anything_else> like TCL_STATIC does not
help.

Is it possible to make Tcl_SetResult work under tclkitsh.exe? Or are
there any other ways to solve it?