Hi,
I'm trying to use an ordered view on top of a blocked view but keep getting a segmentation fault. Before I start reporting bugs, please could
someone have a quick look at some sample code and see if I'm setting up the views correctly. The code is as follows:

import Mk4py as mk


ORDERED_ONLY, BLOCKED_ONLY, BOTH = range(3)

option = BOTH


filedb = mk.storage()

if option == BOTH:
words = filedb.getas('_B[k1[k2:I,v:I]]')
blocked = words.blocked()
ordered = blocked.ordered()

ordered.append(k2=2,v=3)

elif option == BLOCKED_ONLY:
words = filedb.getas('_B[k1[k2:I,v:I]]')
blocked = words.blocked()

blocked.append(k2=2,v=3)

elif option == ORDERED_ONLY:
words = filedb.getas('k1[k2:I,v:I]')
ordered = words.ordered()

ordered.append(k2=2,v=3)

When option == BOTH, I get the segmentation fault. When it is either of the other two values, there's no seg fault.

I'm not expecting anyone to diagnose the seg fault yet - I'll investigate that further myself if people say this code should work.

--
Cheers,
Pat Tel: 0117 930 9621 (Intl: +44-117-930-9621).

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

Reply via email to