Original Post
Hey everyone, After about 2 weeks or so, I decided to go back to my project again. However, I seem to have ran into an interesting problem. I cleaned and rebuilt the project, and got 100's of warnings that I have not gotten before. After resolving those, and decided to test it. To a surprise, it crashes in a routine that I have not needed to touch for awhile. I am getting these types of errors: "Not enough space for envirement", "Not enough space for lowio initialization", "Not enough space for arguments" and access violations at address 0 referencing memory at address 0. (No idea how that is possible. Selecting "Show Disassembly" from the debugger even brings me to address 0) It always crashes in my OpenGL driver at the same location:
GLuint PixelFormat;
if (!(PixelFormat=ChoosePixelFormat(hDC,&pfd)))
{
g_EvehLog << LogLevel (ERROR) << " *** Pixel format not avialble. Cannot initiate OpenGL device context." << std::endl;
} Occording to the debugger, the variables are fine. It seems to crash inside of the ChoosePixelFormat() Win32 API routine. Has anyone ever experienced this before? What would you suggest to resolve these problems? I even ran a previous working build of the project, but it does not seem to work anymore. I am now at a loss at what to do... The projects were built with Visual C++ 2005. Perhaps I should try upgrading to 2008 (Assuming Visual C++ is the problem.) Any help is greatly appreciated.