Man this is pissing me off so much…
Whenever i compile any OpenGL program at all, even if they have a blank screen, and i don’t use any opengl commands at all, it still crashes…
All of Glut stuff crashes, and NeHe stuff too…
Im using Borland C++Builder 3.0, and i have the lastest Opengl32.lib, Glu32.lib, and glut.lib files which have been converted to Borland…
This only started happening after i installed the detonator2 drivers… Every other Opengl app runs fine, Quake2/3 runs great, Mark’s Opalis demo run fine…
I have tried compiling programs using Opengl 1.1 libs, and opengl 1.2 libs, and dynamically linking to OpenGL32.dll and mapping out all the function calls at runtime… They all seem to crash…
There is a problem with the floating point on the borland compilers and opengl, but borland says to use this:
#ifdef BORLANDC
#include <float.h>
#endif /* End BORLANDC */
/*----- Inside WinMain ------ /
#ifdef BORLANDC
_control87( MCW_EM, MCW_EM );
#endif / End BORLANDC */
And that will fix things up… I don’t know why it crashes…
heres the link to some excutables…
http://www.ompac.net.au/~troyfa/GLTest.zip
There’s 3 files… One uses the dynamic runtime binding to OpenGL32.dll, and resolves all the opengl functions at runtime… To see what i mean, right click on any of the exes, and select quick view… There should be an import listing declaration… Two of the files, will have Opengl32.dll with the appropiate functions… The other one dosn’t have this, it’ll be blank, that one is the dynamic version…
Those programs will crash your system forcing a reboot, or they will crash programs that are run afterwards… However it won’t crash on all systems, i don’t know why…
So if anyone here knows why this happens, let us know, becuase it’s a friggen pain…
The GLTest11.exe and GLTest12.exe uses one of NeHe demo code, nothing has changed except for the font, Title bar, and the color of the font, everything else remains the same…