[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

[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 JavaSet

[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:send

[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? > > Tha

[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] 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); >

[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 small

[Tcl Java] Re: [Tcl Java] [Tcl Java] Installation problem with NT

2000-06-15 Thread Mo DeJong
On Thu, 15 Jun 2000, sharif wrote: > when using Blend, i am getting "can't find package java" error. It sounds like the pkgIndex.tcl file for Tcl Blend is not getting found. When you unzip the tclBlend126-win32-tcl83-jdk122.zip file, the following directories should be created. creating: lib

[Tcl Java] [Tcl Java] Installation problem with NT

2000-06-15 Thread sharif
when using Blend, i am getting "can't find package java" error. If anyone has Blend working on NT, can they please send me 1- the locations of jdk, tcl, tcl blend directories 2- their path and classpath settings thanks more info 1- i am 1- i am using nt4, jdk1.2.2, tcl8.3.1, blend 1.2.6 2- as

[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] Re: [Tcl Java] RE: [Tcl Java] Re: [Tcl Java] what I now know about the deadlock

2000-06-15 Thread Mo DeJong
On Wed, 14 Jun 2000, W. John Guineau wrote: > Without having looked into the innerds of TclBlend's JNI implementation > (though it looks quite clean at least) I'd say that removing the monitor > calls and JAVA_LOCK are probably fine. > > I say this because we have a decent size app (~250K lines

[Tcl Java] Re: [Tcl Java] patch for deadlock

2000-06-15 Thread Mo DeJong
On Wed, 14 Jun 2000, Dr Wes Munsil wrote: > The patch I ended up with to solve the Solaris deadlock issue combines > Jiang Wu's patch and the removal of all MonitorEnter and MonitorExit > calls. The diffs between TclBlend 1.2.5 and my version are at > http://idd.com/~wes/tclblendpatch. Note also