|
-
Dec 18th, 2001, 05:54 PM
#1
Release Build Woes[MSVC6]
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.
-
Dec 19th, 2001, 02:17 PM
#2
Monday Morning Lunatic
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?
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Dec 19th, 2001, 04:14 PM
#3
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.
-
Dec 19th, 2001, 06:03 PM
#4
Monday Morning Lunatic
This is why you should always check that what you wanted actually happened.
And another good reason why exceptions whomp error codes
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Dec 19th, 2001, 06:20 PM
#5
I really need to read up on exceptions. =).
Z.
-
Dec 19th, 2001, 06:34 PM
#6
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|