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

Re: [Xotcl] alloc error

From: Uwe Zdun <uwe.zdun_at_wu-wien.ac.at>
Date: Thu, 02 Sep 2004 11:43:31 +0200

Hi Michael,

the problem is part of the new namespace treatment. I've fixed this problem
and will send you the updated .tar.gz in a separate email. Anyone else
who has this problem
can get the fixed version from me. the fix will also make its way into
the next release.

Uwe




michael.heca_at_email.cz wrote:

>Hi,
>
>I found error in running XOTclIDE with new xotcl from version 1.3.0.
>
>Error is raised by similar code:
>---------------------------------------------
>#!/usr/bin/tclsh
>
>package require XOTcl
>namespace import ::xotcl::*
>
>Class NS
>Class NS::Main
>
>NS::Main proc m1 {} {
> my m2
>}
>
>NS::Main proc m2 {} {
> namespace eval :: Object crash
>}
>
>NS::Main m1
>---------------------------------------------
>Error is:
>---------------------------------------------
>couldn't find result of alloc
> ::xotcl::Object ::xotcl::Class->create
> ::xotcl::Object ::xotcl::Class->unknown
> invoked from within
>"Object crash"
> (in namespace eval "::" script line 1)
> invoked from within
>"namespace eval :: Object crash"
> (procedure "m2" line 3)
> ::NS::Main->m2
> invoked from within
>"my m2"
> (procedure "m1" line 3)
> ::NS::Main->m1
> invoked from within
>"NS::Main m1"
> (file "T:\home\heca\test\xotcl\e130.tcl" line 18)
>---------------------------------------------
>
>If i directly call NS::Main m2, everything is ok.
>
>It is xotcl error or problem is in this code?
>
>
>Michael Heca
>
>
>
>_______________________________________________
>Xotcl mailing list - Xotcl_at_alice.wu-wien.ac.at
>http://alice.wu-wien.ac.at/mailman/listinfo/xotcl
>
>

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