Which line is crashing? You can step through with the debugger to find out.