What line is the error occurring on? You didn't post the full text of the compiler's error message which includes the line and the line number.