Begin forwarded message:

From: Jean-Claude Wippler <[EMAIL PROTECTED]>
Date: March 18, 2004 23:54:31 CET
To: starkit list server <[EMAIL PROTECTED]>
Subject: Re: [Starkit] Mk4tcl - SegFault when using cursors :-(

Christoph Drube wrote:

I have massive problems using MetaKit with Tcl (ActiveTcl 8.4.5).

Sorry to hear that.


# Searching property by property
# Q: Is there a better way to search ?
set hits {}
foreach i $proplist \
{
  set hits [concat $hits [mk::select $v -first 2 -glob $i $s]]
}

mk::select $v -first 2 -glob $proplist $s


Well, when swapping the rows, this script crashes with seg fault.
I had a look at the row contents and the search results - all is fine, but
after the second or third iteration over nr it always crashes :-/


What I'm doing wrong? Have I misunderstood the mk::cursor command or
their use?

Make sure you use Mk4tcl 2.4.9.3 - from the change log:


2004-01-22 Fixed refcount problem with temp rows in Mk4tcl

    This was a long-standing bug: "mk::row create" did not work right
    because the tracking of temporary rows was completely messed up.
    Added test case for Tcl (mk6.8), fixes FB14, BTS#78, and BTS#29.

It really drives me to despair cause it's not the first seg fault with mk4tcl
- isn't it possible to use property names with blanks?

I'm not sure. I always avoid blanks in property names. Tcl has no restrictions, but identifiers in C++ and Python are limited in the same way.


Christoph (frustrated) :-(

Ouch.


-jcw

_____________________________________________
Starkit mailing list  -  [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/starkit

_____________________________________________ Metakit mailing list - [EMAIL PROTECTED] http://www.equi4.com/mailman/listinfo/metakit

Reply via email to