I looked into the problems people were having with the precompiled
Tcl Blend 1.2.5 version built for JDK 1.1. First off, Tcl prints
a lousy error message when loading a .dll fails. If you are having
any problems loading tclblend.dll, you might want to apply this patch.
--- tcl8.2.0/win/tclWinLoad.c Fri Apr 16 00:48:09 1999
+++ /share/Tcl/tcl8.2.0/win/tclWinLoad.c Sat Nov 13 21:08:22 1999
@@ -60,10 +60,24 @@
*clientDataPtr = (ClientData) handle;
if (handle == NULL) {
- TclWinConvertError(GetLastError());
- Tcl_AppendResult(interp, "couldn't load file \"", fileName,
- "\": ", Tcl_PosixError(interp), (char *) NULL);
- return TCL_ERROR;
+ DWORD lastError = GetLastError();
+ TclWinConvertError(lastError);
+ Tcl_AppendResult(interp, "couldn't load library \"",
fileName, "\": ", (char *) NULL);
+ // Check for DLL errors defined in winerror.h
+ switch (lastError) {
+ case ERROR_DLL_NOT_FOUND:
+ Tcl_AppendResult(interp, "the library or another
library it depends on that could not be found on the PATH", (char *)
NULL);
+ break;
+ case ERROR_INVALID_DLL:
+ Tcl_AppendResult(interp, "the library or one of
the libraries it depends on is damaged", (char *) NULL);
+ break;
+ case ERROR_DLL_INIT_FAILED:
+ Tcl_AppendResult(interp, "the library
initialization routine failed", (char *) NULL);
+ break;
+ default:
+ Tcl_AppendResult(interp, Tcl_PosixError(interp),
(char *) NULL);
+ }
+ return TCL_ERROR;
}
/*
There does seem to be a problem with the precompiled tclblend
download for JDK 1.1 (tclblend125-jdk11.zip) on the scriptics
download page. I was not able to load the dll into a Sun JDK
1.1.8. I was able to generate a tclblend.dll file that would
load by rebuilding from the source. There are going to
be some windows users that do not VC++, so I have created
a new binary download on my web site. You can find a working
binary download for Tcl Blend with JDK 1.1 here.
http://www.cs.umn.edu/~dejong/tcl/tclblend125-jdk11.zip
Has anyone been able to load the precompiled tclblend.dll
from the Scriptics website? I know people have been able
to get the precompiled version for JDK 1.2 working, but
I do not know if anyone has gotten the 1.1 version working.
I hope that helps
Mo DeJong
----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe: send mail to [EMAIL PROTECTED]
with the word SUBSCRIBE as the subject.
To unsubscribe: send mail to [EMAIL PROTECTED]
with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'.