Re: GTree weirdness?



"James K. Wiggs" <wiggs wiggs org> writes:
Is the simple fact that I'm removing nodes
from the GTree while in the process of a g_tree_traverse() the
cause of my problems?

Yup.

 And if so, how *do* I implement this
selective removal functionality?

As you traverse, make a list of items to remove. Then walk the list
and remove each item.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]