View Single Post
Old Apr 7th, 2006, 12:45 AM   #16
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 884
Rep Power: 4 The Dark is on a distinguished road
When you get a situation like this, look at what code is run in this particular case and not in the other cases you have tried.
In this case, the code to delete the root node is run. One thing that code does not do is decrement the counter, so your counter variable is now out of synch with your tree.
The Dark is offline   Reply With Quote