[tcljava-user] Tcl Extension
by Greg Pierce other posts by this author
Feb 6 2006 12:41PM messages near this date
Re: [tcljava-user] Passing string from tcl to JAVA using tclBlend
|
Re: [tcljava-user] Tcl Extension
Hi,
I'm using TclBlend within a Java application to add scripting
capabilities.
I have a C/C++ based Tcl Extension that I've developed and want to use
within a Tcl_Interp. I'm able to do a 'package require' of my Tcl
Extension
Tcl_Interp interp;
interp.eval("package require Myext");
interp.eval("mycmd");
but when the extension tries to execute a Tcl C API command like
Tcl_AppendResult within 'mycmd' it
crashes with an error like:
alloc: invalid block: 0xb03be3e0: 1 0 0
Does anyone know why this is happening?
I've done some research on this alloc command error and what I've found
is that
it might be related to Tcl Threads. I need to make my application
"Thread-Safe".
Is this because TclBlend uses Threads?
Question: Why does TclBlend need to use threads?
I'm kind of at a loss, I'm not sure where to go from here. Any help
would be
greatly appreciated!
Thanks,
Greg
Attachments:
unknown1
unknown2
Thread:
Greg Pierce
Mo DeJong
Greg Pierce
Greg Pierce
Greg Pierce
|