Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Difference Between F5(Debug) and CtrlF5(Release)mode

Difference Between F5(Debug) and CtrlF5(Release)mode

Scheduled Pinned Locked Moved C / C++ / MFC
helpgraphicsgame-devdebuggingannouncement
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    badal_akr
    wrote on last edited by
    #1

    I am writing one application using DirectX in MSVC Visual studio6.0 if i have build my application and Run it using F5 and CtrlF5 the behaviours are different. When i run my appllication in CtrlF5 mode it crashes (Access Violation)but this problem does not come when i run the same application using F5. Any help will be appreciated. Anil Kumar

    M 1 Reply Last reply
    0
    • B badal_akr

      I am writing one application using DirectX in MSVC Visual studio6.0 if i have build my application and Run it using F5 and CtrlF5 the behaviours are different. When i run my appllication in CtrlF5 mode it crashes (Access Violation)but this problem does not come when i run the same application using F5. Any help will be appreciated. Anil Kumar

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      when running in Debug Mode ( F5 ), most pointers ( AFAIK ) will be automatically initialized to NULL ( zero); and I also think that normal variables will also be initialized to some default values ( mostly 0 ). make sure that you initialize every variables to some good default values.


      Maximilien Lincourt Your Head A Splode - Strong Bad

      B 1 Reply Last reply
      0
      • M Maximilien

        when running in Debug Mode ( F5 ), most pointers ( AFAIK ) will be automatically initialized to NULL ( zero); and I also think that normal variables will also be initialized to some default values ( mostly 0 ). make sure that you initialize every variables to some good default values.


        Maximilien Lincourt Your Head A Splode - Strong Bad

        B Offline
        B Offline
        badal_akr
        wrote on last edited by
        #3

        Hi MAximilien, So you mean to say that if Application is run ising CtrlF5 then some variables does take garbage value and may be the possibility of the crash. Anyway thanks for the reply i will verify in my code all the pointers and variables to initialize NULL and 0s. thanks Anil Kumar

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups