Have you tried to DEBUG the program using the debugger and stepping through your code?

Jim