A breakpoint at
case TiXmlNode::TINYXML_DOCUMENT:
break; // here
is never hit, why? It falls thru to the for loop straight off. The matching value is correct.
The term "fall through" has a very specific meaning in the context of switch statements. You should look it up.
What likely happens, is that the compiler implements the switch statement as a jump table and directly jumps to the next statement based on the value used in the switch. The break is only a control statement and doesn't really do anything, so it is skipped.
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
Bookmarks