Quote Originally Posted by Salem View Post
Yes I know, but my question is how it failed to be spotted by the compiler BEFORE you tried to run it (and have it crash horribly).

This was an easily avoided problem in a well-written program with a decent compiler.

You see, if this isn't solved, you're just going to run into the same problem over and over.
And we'll get bored of telling you.
I have no idea.
Instead of writing the document pointer I wrote the document name and it worked.