Re: how does pfGetTravNode() work?
John Rohlf (jrohlf++at++tubes)
Wed, 3 May 95 14:01:40 PDT
>
> I am looking for an explanation as to why this does not work.
> I created a preCull and postCull callback routine and assigned
> them to all my nodes (in a test program). Their function is
> to echo the node's name during the preCull and to print the cull
> result on postCull. The pre works fine. The post does not seem
> to understand the node it is in. It always prints the the last
> node in the tree. Is the node returned by pfGetTravNode() not
> valid during a post cull process?
This is indeed a bug in the traversal logic. As a workaround,
you could maintain a stack of node pointers in the cull callbacks, i.e. -
push in the pre and pop in the post.
Sorry.
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:51:28 PDT