Uh, sorry guys. Apparently the problem was way off in a completely unrelated part of my code. I don't know how I didn't pick up on that pretty quickly; I guess I probably just changed something else at the same time as adding that LoadFromFile() function in, and then forgot that I had changed it. Still I know how to use a debugger and everything, so it's kind of strange. Sorry about that. Thanks for the help!