> class MyTclEvent extends TclEvent {
>
> private Interp mInterp = null;
>
> public MyTclEvent (Interp interp) {
>
> }
>
> public int processEvent (int flags) {
> try {
> hello(mIterp);
> } catch (TclException e) {
> e.printStackTrace();
> }
>
> return 1;
> }
>
> public void hello (Interp interp)
> throws TclException
> {
>
> interp.eval("draw line");
>
> interp.eval("puts {Hello, World}");
> }
A quick glance at your code seems to indicate the you
never set interp (aka mInterp) to anything. I am
willing to bet that you put that "mInterp = null"
just to avoid a compiler warning.
Just save the value:
public MyTclEvent (Interp interp) {
mInterp = interp;
}
Mo DeJong
Red Hat Inc
----------------------------------------------------------------
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]'.
An archive is available at http://www.mail-archive.com/tcljava@scriptics.com