Environment: Win2000, service pack 2; 1.33 Ghz Athlon with a gig of RAM, GeForce 3 with 28.32 drivers; Visual C++ 6.0 with whatever their latest service pack was...
I just noticed this problem with my simulation engine: executed under a release build it runs fine; under a debug build executed in the debugger it runs fine; but under a debug build not executed thru the debugger it crashes inside the OGL driver.
What is strange is that I just rendered the scene a "moment" before completely fine. Now I've performed some work that I want to see a progress message on, so I render the same scene with my progress message added to the "console" text I render over the OGL scene. But this render crashes inside the OGL driver trying to access memory that looks like my geometry addresses shifted right 8 bits! I'm not even up to the portion of the logic that would be rendering the console text yet.
So strange... at this point I've only loaded 2 geometries and I'm in the process of loading my 3rd. That's what the progress message is for, just telling me where in the load logic I'm at while parsing geometry 3. Geometry 3 is not affecting the render pipeline yet- I don't add it to the renderable list until it is completely loaded. I've already rendered the scene with the previous two geometries 3 times for other status messages. Just this time around, I'm getting a "memory could not be read" at address 0x09f5f000 crash. The bizarro part that has me questioning the driver is that when I examine what memory I'm getting for my geometry data I have address ranges like:
0x9f412b8 to 0x9f4a2b8, <- first geometry
0x4f095f0 to 0x4f0c5f0,
0x9f412b8 to 0x9f4a2b8, <- 2nd geoemtry
0x4f095f0 to 0x4f0c5f0,
0x9f50420 to 0x9f56420,
And it is after submitting the 1st geometry's vertex & color array pointers that I get my crash inside glDrawArrays() trying to access memory at 0x09f5f000...
That sure looks like an address that would be inside my vert array if the address were shifted 8 bits... which of course makes no sense...
But the application runs fine in release and debug (inside the debugger)...
Does this sound like a driver issue? I'm not seeing how I can track this any further...



