Quote:
Microsoft Visual C++ Runtime Library
The application has requested the Runtime library to terminate in an unusual way.
Please contact the application's support team for more information.
Having copied the code exactly as the instructions suggested with the declaration in the .cpp and the definition in the .h with the 'extern' keyword, or did I get that back to front? Anyway, I can compile the problem without a problem, however as soon as I go to run the program, I get this error. I get the same error when I add the declaration in other places around my program. In other words, if I declare this variable outside my 'main' function, I get the error, if I delcare it inside just before everything else gets executed, the same error occurs. If I declare it inside my OpenGL class outside all the functions that are associated with OpenGL, the same thing happens. I have tried to declare inside the PainGL function for example and the program runs without a problem but outside functions, the declarations are not liked. Any ideas?