Suggestions:

You will want to post the actual and complete error message.
You will want to indicate by a comment in your code the line(s) causing the error.
Please surround your posted code...