The output window may have more diagnostic information.
Does it?
Are you sure your input file is opening correctly? And are you correctly reading this file correctly?
Have you tried running this program with your debugger? The debugger should be able to tell you where the problem was detected and you should be able to view your variables at the time of the crash.
Have you tried running this program with your debugger? The debugger should be able to tell you where the problem was detected and you should be able to view your variables at the time of the crash.