Ok I made a teeny tiny little change ) to the C-executable I use to launch my Tcl/Tk application and it stopped working. The problem seems to be that changes I make to the environment before I call Tk_Main/Tk_Init via code like this:
[tt]sprintf(tk, "TK_LIBRARY=%s\\tk", loaddir);
_putenv(tk);
free(tk);[/tt]
which has been working for over ten years, doesn't work, in the sense that the Tcl [tt]env[/tt] variable does not have a TK_LIBRARY entry. However, there is definitely a TK_LIBRARY entry in the environment, as I can tell by various means.
About all I did (-: was move the code that does those environment settings from a dll directly into the executable. If I did something else, I don't know what it is.
Any ideas why the [tt]env[/tt] variable isn't being populated?
[tt]sprintf(tk, "TK_LIBRARY=%s\\tk", loaddir);
_putenv(tk);
free(tk);[/tt]
which has been working for over ten years, doesn't work, in the sense that the Tcl [tt]env[/tt] variable does not have a TK_LIBRARY entry. However, there is definitely a TK_LIBRARY entry in the environment, as I can tell by various means.
About all I did (-: was move the code that does those environment settings from a dll directly into the executable. If I did something else, I don't know what it is.
Any ideas why the [tt]env[/tt] variable isn't being populated?