Hi all.
I have a new patch that adds support for loading of
TclBlend into a Java, it is a little less complex
than the solution Jiang proposed.
Here is the source file I am using.
% cat LoadTclBlend.java
import tcl.lang.*;
public class LoadTclBlend {
public static void main(String[] args)
Hi,
I am creating a set of Tcl commands over a java application. Without a
seperate thread for Tcl interpreter, the commands I created worked fine in
java. However, taking the advice from Mr. Wu, I am trying to create a
seperate thread for Tcl interpreter but I couldn't make it work.
In my
class MyTclEvent extends TclEvent {
private Interp mInterp = null;
public MyTclEvent (Interp interp) {
}
public int processEvent (int flags) {
try {
hello(mIterp);
} catch
Thanks Mo. You are right. But actually I have "mInterp = interp" in my
program. When I sent you the mail somehow I deleted it. That means having
that in program, still have the same problem. Could you please help me to
find another problem?
Thanks,
Zhumei
On Thu, 15 Jun 2000, Mo DeJong wrote:
On Thu, 15 Jun 2000, Zhumei Wang wrote:
Thanks Mo. You are right. But actually I have "mInterp = interp" in my
program. When I sent you the mail somehow I deleted it. That means having
that in program, still have the same problem. Could you please help me to
find another problem?
Thanks,
Sorry, Mo. I didn't know that was a pure java question. I thought that was
a question related to Tclblend. Thank you for your time anyway.
zhumei
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe:
Your patch is a good start. There may be a few issues not addressed by this
patch:
1. Java_tcl_lang_Interp_create() may need a separate C mutex to prevent more
than one thread from creating the JVM when used in the threaded version of
Tcl. I don't think know the effect of trying to call
On Thu, 15 Jun 2000, Jiang Wu wrote:
Your patch is a good start. There may be a few issues not addressed by this
patch:
1. Java_tcl_lang_Interp_create() may need a separate C mutex to prevent more
than one thread from creating the JVM when used in the threaded version of
Tcl. I don't