This is typical! I have a deadline for my project July 10th, things were going great, most of my little game was done and I was really happy.
Now I get an illegal operation error each time I start it. And if I debug I get a list with a lot of asm-code and it says "acces violation". I'm using Visual C++ 5.0. Is there anyway to get VC to just point me to which part of my code causes the problem?
The strange thing is that I didn't DO anything to the code!
I implemented the a performance counter according to tutorial 21 on NeHe's site. And it worked perfectly. Things were a little slow so I tweaked ONE variable. Tried it again and the speed issue was resolved, however one of my two textures (I only use two) didn't show. I was like "wtf!?", so I changed the texture-bind for the texture that didn't work to point to the one that worked instead, and now both my objects were drawn with the same texture. So i tried setting them both the the one that didn't work. And that's when I got my first error-message message.
So I looked around and saw that the variable holding the name for the texture objects read
GLuint texture[1]; instead of GLuint texture[2];
This puzzled me because it worked before, and I'm pretty certain I set it to 2.
Anyway, I changed it back to 2 but it still didn't work.
So now I commented out all the code that could cause trouble. The text-code, the timer-code (I reinserted the timeGetTime() multimedia timer). And it still crashes on startup.
I'm about to kill myself. I mean things were going so great and this **** has to happen!
I HAVE to get this project done by the 10th or I'm screwed. This really is a dead-line.
Any ideas?
You HAVE to help me here!
I'm going insane! I think I'm about to cry. I have no idea how the debugger works in VC.
PLEASE HELP!




