Quote:
Original post by WitchLord
That last error is probably due to opening the script file in text mode, instead of binary mode. If opening the script file in text mode, the line endings may get translated from CRLF to just LF, thus producing a shorted script buffer than the file size.
I'm passing the script text to Angelscript via a std::string. I'm using Angelscript inside of a browser plugin, so the script text comes from a text file on a web server. If I output it to a message box, it looks right. Would you suggest I do it another way?