>I have a VFP program that is giving me this "Allowed Do nesting level exceeded" error at runtime. I am having a terrible time figuring out where in the 3500 lines of code it is hanging up. I have put wait windows in and narowed it down, but I am stuck now. I did not write this code and I am just learning VFP. Does anyone have any suggestions on an efficient way to debug this thing?
Put a watchpoint on program(-1)>50 or so in the watch window of the debugger. You should be able to see the recurring pattern of procedure names in the call stack window. Clicking on caller names there will show in the trace window the exact line where the call was issued. At least you'll be able to see where's the call coming from.