[tcljava-user] Tcl Extension
Brought to you by:
mdejong
From: Pierce, G. <Gre...@ls...> - 2006-02-06 20:40:12
|
Hi, =20 I'm using TclBlend within a Java application to add scripting capabilities. =20 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 =20 Tcl_Interp interp; interp.eval("package require Myext"); interp.eval("mycmd"); =20 but when the extension tries to execute a Tcl C API command like Tcl_AppendResult within 'mycmd' it crashes with an error like: =20 alloc: invalid block: 0xb03be3e0: 1 0 0 Does anyone know why this is happening? =20 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? =20 Question: Why does TclBlend need to use threads? =20 I'm kind of at a loss, I'm not sure where to go from here. Any help would be greatly appreciated! =20 Thanks, =20 Greg =20 |