2011-09-29, 05:54 PM
Sorry, but you're not going to get much help by plopping 6 whole files down and asking people to debug your program. Try to localize the problem more. Step through the code in the debugger, checking that values match your expectations. If everything looks ok, check the docs and see if functions do what you think they do.

