If you don't care, and you don't understand, how do ever expect to solve the problem? It's hard to tell what the exact error is without some context of what your program was attempting to do at the time. If I had to make a guess (which I do, given the little information you have provided):
In looks like your "jobdone" event handler tried to access position 3 of a two-position array. For example:
Dim MyVar(2) as Int
MyVar(0) = 1 ' OK
MyVar(1) = 2 ' OK
MyVar(2) = 3 ' ERROR