[Tcl Java] New patch for loading of TclBlend from Java

2000-06-15 Thread Mo DeJong
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)

[Tcl Java] problem with creating a thread

2000-06-15 Thread Zhumei Wang
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

[Tcl Java] Re: [Tcl Java] problem with creating a thread

2000-06-15 Thread Mo DeJong
class MyTclEvent extends TclEvent { private Interp mInterp = null; public MyTclEvent (Interp interp) { } public int processEvent (int flags) { try { hello(mIterp); } catch

[Tcl Java] Re: [Tcl Java] Re: [Tcl Java] problem with creating a thread

2000-06-15 Thread Zhumei Wang
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:

[Tcl Java] Re: [Tcl Java] Re: [Tcl Java] problem with creating a thread

2000-06-15 Thread Mo DeJong
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,

[Tcl Java] Re: [Tcl Java] Re: [Tcl Java] problem with creating a thread

2000-06-15 Thread Zhumei Wang
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:

[Tcl Java] RE: [Tcl Java] New patch for loading of TclBlend from Java

2000-06-15 Thread Jiang Wu
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

[Tcl Java] RE: [Tcl Java] New patch for loading of TclBlend from Java

2000-06-15 Thread Mo DeJong
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