View · Search · Index
No registered users in community xowiki
in last 10 minutes

Re: [Xotcl] Crash on exit with XOTcl loaded twice

From: Uwe Zdun <uwe.zdun_at_wu-wien.ac.at>
Date: Tue, 16 Sep 2003 11:48:32 +0200

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_at_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.

-- 
Uwe Zdun
Department of Information Systems, Vienna University of Economics
Phone: +43 1 313 36 4796, Fax: +43 1 313 36 746
zdun_at_{xotcl,computer,acm}.org, uwe.zdun_at_wu-wien.ac.at