From: Alan W. I. <ir...@be...> - 2002-07-16 20:10:18
|
On Tue, 16 Jul 2002, Vince Darley wrote: > Ok, I think I might know the problem: plserver's main starts messing with > Tcl before calling 'Tcl_FindExecutable'. This is bad (or at least > potentially bad). > > pltclMain has: > > Tcl_FindExecutable(argv[0]); > interp = Tcl_CreateInterp(); > > plserver's 'main' has: > > interp = Tcl_CreateInterp(); > > so try adding the appropriate call... Yes, that fixes it! The installed plserver now works fine, and I have committed the fixed tkMain.c to CVS. Thanks very much for getting this straightened out! BTW, this fix does not solve the remaining similar problem with installed -dev tk, but I notice tk.c has the same problem that occurred for tkMain.c; tk.c calls Tcl_CreateInterp without a prior call to Tcl_FindExecutable. At that point in the code argv is not available so I have to think a bit about the appropriate way to put in the required Tcl_FindExecutable call, but I am sure when I do so the -dev tk problem will be fixed. Alan |