Hello all. I had an old driver for my NVidia Riva TNT2, with Windows 2000 professional. Since dxdiag showed that Direct3D and AGP options were disabled, I installed brand new drivers from NVidia’s website.
As a result, all the examples from the OpenGL tutorial that I had downloaded from NeHe (nehe.gamedev.net) suddenly stopped working. I get “unknown software exception” 0xc0000090 twice, and then 0xc0000027. (The .exe files were compiled in Borland C++ Builder 6.0).
Also, my own Builder codes stopped working, I have an “Invalid floating point operation” inside the function wglMakeCurrent(hdc, hrc). Both arguments are not NULL at that moment, moreover the function crashes without returning any value. I don’t have other OpenGL programs running at the same time, so I guess there are no conflicts. Also, the standard Windows OpenGL screensaver is working.
Here are my drivers (I use Windows 2000 professional, Russian):
nvoglnt.dll, version 6.14.10.5672 from 24.03.2004
opengl32.dll, 5.0.2195.2676, 21.06.2001
nv4.dll, 5.0.2160.327, 16.03.2000
nv4-disp.dll, 6.14.10.5672, 24.03.2004
Does anyone know how to deal with this problem? How should I alter my C++/OpenGL code, or what files should I update/install to get back to normal?
hdc = GetDC(Handle);
SetPixelFormatDescriptor();
hrc = wglCreateContext(hdc);
if(hrc == NULL)
ShowMessage(":-)~ hrc == NULL");
if(wglMakeCurrent(hdc, hrc) == false) //here's where all crashes...
ShowMessage("Could not MakeCurrent");