Hi,
I am trying to nest TCuts into another but I guess that linking lists is not so eays.
For a cut selection menu I want to create first different sets of TCuts which then are supposed to be stitched together
TCut ACut1("...")
TCut ACut2("...")
TCut ACut3("...")
TCut ACutTotal(ACut1&&ACut2&&ACut3)
Then these cuts are supposed to be combined with some other cuts, either with these cuts or without
TCut BCut;
TCut BCutwithoutA("...")
I tried to combne the main cuts either with the previously combined cut or with each cut separately
TCut BCutwithA("..."&&ACutTotal)
or
TCut BCutwithA("..."&&ACut1&&ACut2&&ACut3)
and finally to make a selection giving the final BCut
if(boolSelector)
{
BCut = BCutwithA;
}
else
{
BCut = BCutwithoutA;
}
but both cases crash (more or less).
TCut BCutwithA("..."&&ACutTotal)
dies with a corrupted double linked list
[quote]*** glibc detected *** corrupted double-linked list: 0x09680970 ***
[/quote]
and [quote]TCut BCutwithA("…"&&ACut1&&ACut2&&ACut3)[/quote] dies immediately with a segmentation violation
So I guess that to much nesting of cuts is not feasible…
Maybe there is a more elegant way for such a cut selection?