The following script produces a "Tcl_Release couldn't find reference for 0x..." message followed by an "abnormal program termination" when Tcl exits:
package require XOTcl
set Interp [interp create] $Interp eval {package require XOTcl} interp delete $Interp
As you can see, XOTcl is being loaded once in the main interpreter and once in a sub-interpreter.
I'm running XOTcl 1.0.2 with Tcl 8.4.2 and 8.4.4 on Windows.
Michael,
this problem does not seem to exist anymore in the forthcoming 1.1 release ... in the 1.0.* releases it should work to use the xotcl::interp command (which pre-initializes xotcl in the child interp) instead:
package require XOTcl
xotcl::interp create Interp Interp eval {package require XOTcl} xotcl::interp delete Interp
Uwe
On Monday 15 September 2003 23:15, MichaelL@frogware.com wrote:
The following script produces a "Tcl_Release couldn't find reference for 0x..." message followed by an "abnormal program termination" when Tcl exits:
package require XOTcl set Interp [interp create] $Interp eval {package require XOTcl} interp delete $Interp
As you can see, XOTcl is being loaded once in the main interpreter and once in a sub-interpreter.
I'm running XOTcl 1.0.2 with Tcl 8.4.2 and 8.4.4 on Windows.
Great, thanks! I didn't know about "xotcl::interp."
Can you say anything more about 1.1--when it's coming and what it contains?
Uwe Zdun uwe.zdun@wu-wien.ac.at wrote on 09/16/2003 05:48:32 AM:
Michael,
this problem does not seem to exist anymore in the forthcoming 1.1 release ... in the 1.0.* releases it should work to use the xotcl::interp command (which pre-initializes xotcl in the child interp) instead:
package require XOTcl
xotcl::interp create Interp Interp eval {package require XOTcl} xotcl::interp delete Interp
Uwe
On Tuesday 16 September 2003 15:20, MichaelL@frogware.com wrote:
Great, thanks! I didn't know about "xotcl::interp."
Can you say anything more about 1.1--when it's coming and what it contains?
I hope soon ... we still have to sort out some problems. It contains a new, simplified configure/build system (mainly for unix), mixinguards (similar to filterguards), uses the TCLLIBPATH environment variable to find the XOTcl so/dll lib, transitive instmixins (working like superclasses of mixins), and a few minor issues/bug fixes.
--uwe