10197 is not a valid file pointer