compile error when //------------\\ is in my code

If you had posted your code, and the error message, rather than excerpting with "all sorts of compile errors" then we might have been able to see the exact problem

I disagree - the problem is evident in the thread title!