Me too, placeing printf("Test1"); ... printf("Test2"); ... printf("Test3"); helps to find out where the error is.