O/H Georgios Petasis έγραψε:
> Hi all,
>
> I am using ActiveTcl 8.5.2 & tcljava 1.4.1, under vista ultimate, with
> VC++ 9.
> I am trying to write a cmake (www.cmake.org) script for compiling
> tcljava (mainly tclblend).
> I have managed to get tcljava.jar & tclblend.jar built with my script.
> Also, I am able to build tclblend.dll. But the problem is that I get a
> crash as soon as I try to load
> tclblend.dll :-)
>
> The crash happens in line 1031 of javaCmd.c:
>
> ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey);
>
> Which suggests that I have done something silly with the tcl thread
> support stuff.
> I have compiled the code with -DTCL_THREADS (I took from tcl.h) and
> -DUSE_TCL_THREADS
> (which I added to look similar to USE_TCL_STUBS).
> Any ideas on what I am doing wrong?
>
> Regards,
>
> George
I am sorry for the false alarm: the problem is that if you define
USE_TCL_STUBS, you have to call Tcl_InitStubs somewhere in the code.
Problem solved :-)
Regards,
George
|