Re: ::tcl_library needed to be set for each interpreter???



On May 15, 7:29 am, Ron Fox <f...@xxxxxxxxxxxx> wrote:
What problem are you trying to solve by copying tclsh and friends
to a different folder? I have a hunch there may be simpler ways to do
what you're trying to do that will side-step this issue.

My application exe is in a different folder (C:/MyApp/bin/win32/
myapp.exe) than where the tcl and it's other packages are residing(C:/
MyApp/tcl/tcl8.5.2/win32..). To run my appln, I have been only
copying the tcl and tk dlls into the same folder location as my appln
exe. I don't copy any tcl or wish or other folders like tcl8.5, tk8.5
etc in that folder. ( The example I gave before about copying tclsh
etc was to tell how one can get the same error I am getting).

Now, when I run the interp create command, then it complains that it
is not finding a valid init.tcl under the folder from where the
application is run from and it's parent folders. And this is how the
code is written under Tcl_Init() funciton in it's tclInit() eval
block. It doesn't make sense to me why it check's these folder
paths. So, to resolve this error I call the tclPreInitSript()( which
looks like, is independent of the interpreter) to set tclPreInitScript
var's value. But, then I get the error from tkcon.tcl file that there
is no ::tcl_library variable set on calling the "interp create..."
from tkcon.tcl( ::tcl_library seems to be interpreter dependent!!!)

I am just learning to use the tcl file functionings, so probably I
might be missing something.
Do you how can I resolve this error? One way would be to copy all the
tcl binaries created( under C:/MyApp/tcl/tcl8.5.2/win32) to where my
app exe is. But , I would like know if there is a simpler approach,
like setting something etc. to resolve the error.

Thanks.

.



Relevant Pages

  • Re: Should legal app crashing XP be considered a security issue?
    ... > take a look at the link in the original post, its a tcl file system stress ... creates about 300 files *per second* with each file in a separate folder. ... I am suspicious that Tcl is using the Windows i/o ... subtly "non-grooved" way that is exposing a bug in XP (or call ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Building Tcl/Tk from source on Windows
    ... Inspecting the folder it was looking at, I found that the Tcl ... using that to build Tk against (by assigning TCLDIR to the AS lib folder). ... b1) append the command to the commands creating Tcl, ...
    (comp.lang.tcl)
  • Re: moniter a folder?
    ... >> How can i moniter a folder in tcl? ... >> is it possible with bind? ...
    (comp.lang.tcl)
  • Re: compile a TCL script and an icons directory into an exe (in Windows)
    ... SaToNiO wrote: ... when i finished i put the two files in the same folder with the my tcl ... script, i copied the tclkit.exe and renamed the copy to tclkit2.exe ...
    (comp.lang.tcl)
  • RE: Exchange Server
    ... I'd like to make a summary for the Exchange issue here: ... Download the EX2KSP3_server.exe file from this page into the SP3 folder. ... Using Microsoft Exchange Server 2003 Recovery Storage Groups ... <To resolve this ...
    (microsoft.public.windows.server.sbs)