What are the differences between clicking the "Go" (debug) button, and the "Run" (no debug) buttons under release mode? My app runs fine when debugging, but a i get an access violation otherwise.
Z.
Printable View
What are the differences between clicking the "Go" (debug) button, and the "Run" (no debug) buttons under release mode? My app runs fine when debugging, but a i get an access violation otherwise.
Z.
In release mode, it gives you a warning when you try to debug it because there's no symbol information for it to use.
What code gives you an access violation? Are you going off the end of an array?
Well, the access violation was occuring because I was trying to Lock a vertex buffer in D3D, but it was failing (dunno why), and i wasnt checking for a failure.
Z.
This is why you should always check that what you wanted actually happened.
And another good reason why exceptions whomp error codes ;)
I really need to read up on exceptions. =).
Z.
Pity DX doesn't use them.
Well, it's based around COM which doesn't support them so I suppose it's fair enough really.
Somebody really needs to make a nice HW supported layer onto DX and OpenGL using exceptions, because it's a lot easier to code - basically, you only have to worry about erroneous conditions that affect you IMMEDIATELY. Everything else gets passed up to the calling scope.