Results 1 to 6 of 6

Thread: Release Build Woes[MSVC6]

  1. #1
    Zaei
    Guest

    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.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3
    Zaei
    Guest
    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.

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  5. #5
    Zaei
    Guest
    I really need to read up on exceptions. =).

    Z.

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width