From: S-Y. Chen on
Dear All,

This was continued from my previous post "load tk85.dll fail"

I am still not able to resolve the problem, but I think am able to pin
point the problem now. I will explain it below.

1. I compile my own Tcl and Tk 8.5.7. with my notebook. And I load
tk85.dll on my notebook inside tcl shell. It works OK. However it
fails on other machines (invalid argument)

2. I came back to Tcl/Tk 8.5.1. and compile it again. Now I can load
tk8.5 on all machines. And "package require registry" worked fine on
my notebook, but return "invalid argument" error on other machines.

3. I download the ActiveState Tcl/tk binary distribution, then install
it and try. It works well on all machines.

4. I use the tclreg12.dll from ActiveState to replace my (compiled)
tclreg12.dll. Now, it will work on all machines, with my own compiled
Tcl.

I checked the file size of the dll. My version is 18KB and ActiveState
version is 24KB. (I know this is a stupid way to compare, but at least
there is significant difference).

So, I guess I have done something wrong when compiling my own
tclreg12.dll. Can anyone help me a little on this ?