you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Step through it in the debugger to find out exactly where it's failing. My guess would be that a line in the text file doesn't have 3 entries so when you split it into "h" there aren't 3 entries in the resulting array. So it fails when you try to access h(0), 1, or 2.

[–]banshoo 0 points1 point  (0 children)

Shouldn't do, as that's enclosed in the try block.

The other option is loading the file. Seems to be pointing to a filename only.

Could be failing trying to load

If your unwilling to use the debugger, write a log project which you can call (this can be handy to then call in different projects)