Exactly, Fredborg, pretty obvious.
A good old log file would help.
Though you can simply use a "stop", "runtimeerror", or waitkey (anything to pause the prog) as suggested, and do some kind of manual dichotmic search, so to speak: put it in the middle of the block of code, if you still have a mav put it half way closer to the beginning, else half way closer to the end. Once you have nailed down a bit you can simply run the prog step by step from just before the the offending block of code to see exactly where it crashes.
A good old log file would help.
Though you can simply use a "stop", "runtimeerror", or waitkey (anything to pause the prog) as suggested, and do some kind of manual dichotmic search, so to speak: put it in the middle of the block of code, if you still have a mav put it half way closer to the beginning, else half way closer to the end. Once you have nailed down a bit you can simply run the prog step by step from just before the the offending block of code to see exactly where it crashes.