   GLSL - error C0501: type name expected at token "invalid atom -1"
  Hey.i have a couple of shaders that i load from text files and that works fine but now i'm trying to move some of them into the source code of my engine by putting their code into one big String.Some of these hard coded shaders compiles happily while others give the following errors error C0000: syntax error, unexpected $end at token "<EOF>"error C0501: type name expected at token "<invalid atom -1>"any idea what might cause this?Thnx in Advance!   
  IIRC I think it means something likeA/ you have an error in your reading/parsing code, perhaps youre reading to little of the string?B/ youve copied a shader eg from a webpage + it has invalid (invisible) characters in it   ;  thnx butim pretty sure i am reading the whole string since if i deliberately make a syntax mistake on the last line of the code it gets picked up and i get the appropriate error.and i'm not copying it from a web site instead i simply took it from the text file that i was reading it in from previously (as my OP stated) so its not that.any other idea's?EDIT - im using java with the lwjgl opengl binding and im declaring the shader code in a String after wich i then use the String classes .getBytes method on it. Probely irrelevent but i cant be sure.   ;  similar problemhttp://www.gamedev.net/community/forums/topic.asp?topic_id=493419looks like #A is the answer, something to do with how youre parsing it check the string is null terminated (reading one too few charcters is common)   ;  in the topic u posted me someone mentioned something about comments and even though that wasnt the exact problem i had it did make me go back to look at my own and i realised that:in my java class where i declare the huge string i simply concatenate all the lines from the text files together without ever using any newline operator. the problem was that some of my shaders had // comments in them :P meaning that ALL code after that got commeted out (since the entire shader is now on 1 very long line), making it seem that the shader is only partialy loaded.Thnx for your time!   