10371 is not a valid file pointer