Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Damn you byte order mark!

dave6660dave6660 New York, NYPosts: 2,587Member Uncommon

I just spent about 4 hours trying to figure out why an exception was being thrown while loading an HLSL file.  The compiler was complaining about an unreconized token on line 17.  The line contained a simple assignment.  It was about the simplest shader you can write.

After a while something possessed me to look at the fx file in a hex editor.  Lo and behold the file started with the infamous "EF BB BF".


Sorry, I needed to vent.


“There are certain queer times and occasions in this strange mixed affair we call life when a man takes this whole universe for a vast practical joke, though the wit thereof he but dimly discerns, and more than suspects that the joke is at nobody's expense but his own.”
-- Herman Melville


Sign In or Register to comment.