I keep getting the following error: Unhandled exception at 0x009f240e in OpenGL and GLUT - 101.exe: 0xC0000005: Access violation writing location 0x00000000.
I have found some questions here with a similar error code but they all seem to say the problem is: dereferencing a NULL pointer. However, I can't seem to find anything that really explains what that means or what to do about it.
Here is a small sample of my code:
Tree* myTree; //global variable pointer
int main (int argc, char** argv)
{
fstream file = fstream ("Tree.txt");
*myTree = Tree(file); // This is where the error is occuring
}
If anyone has any advice or ideas on what I could do to fix this, please let me know. If there is any other code I should add, let me know that as well.