12315 is not a valid file pointer