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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. APP Won't launch in Release settings

APP Won't launch in Release settings

Scheduled Pinned Locked Moved C / C++ / MFC
helpdebuggingannouncementworkspace
7 Posts 4 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.
  • M Offline
    M Offline
    Mike24
    wrote on last edited by
    #1

    :mad: Hi out there. I got a problem with an application compiled with Visual NET 2002. My application will not launch when I perform a 'Start without debugging', but will start perfectly if I perform a Start (From the Debug Menu). Once I've performed the start without debugging, I can see that my App is running (an even with 90% of the cpu), but it won't go further ! Same thing if I launch it manually by double-clicking my exe A basic check has been to put a MessageBox at the very first beginning of the program (I can see it when starting From the 'start' menu). This problem only happens with the release configuration of my projects (The debug exe works fine). If anybody could Help, it would be great cyz that stuff is goin to drive me crazy. Thanx in advance Mike.

    N T M 3 Replies Last reply
    0
    • M Mike24

      :mad: Hi out there. I got a problem with an application compiled with Visual NET 2002. My application will not launch when I perform a 'Start without debugging', but will start perfectly if I perform a Start (From the Debug Menu). Once I've performed the start without debugging, I can see that my App is running (an even with 90% of the cpu), but it won't go further ! Same thing if I launch it manually by double-clicking my exe A basic check has been to put a MessageBox at the very first beginning of the program (I can see it when starting From the 'start' menu). This problem only happens with the release configuration of my projects (The debug exe works fine). If anybody could Help, it would be great cyz that stuff is goin to drive me crazy. Thanx in advance Mike.

      N Offline
      N Offline
      Navin
      wrote on last edited by
      #2

      The things I would check: 1. Project settings. Are they the same for release as they are for debug? 2. Paths. Perhaps you have relative paths in your code that are breaking when you run from a different spot. 3. Uninitialized variables. Sometimes the debugger will initialize these to 0 and mask out bugs that will manifest in the release builds. "When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity." - Albert Einstein

      1 Reply Last reply
      0
      • M Mike24

        :mad: Hi out there. I got a problem with an application compiled with Visual NET 2002. My application will not launch when I perform a 'Start without debugging', but will start perfectly if I perform a Start (From the Debug Menu). Once I've performed the start without debugging, I can see that my App is running (an even with 90% of the cpu), but it won't go further ! Same thing if I launch it manually by double-clicking my exe A basic check has been to put a MessageBox at the very first beginning of the program (I can see it when starting From the 'start' menu). This problem only happens with the release configuration of my projects (The debug exe works fine). If anybody could Help, it would be great cyz that stuff is goin to drive me crazy. Thanx in advance Mike.

        T Offline
        T Offline
        Tim Smith
        wrote on last edited by
        #3

        Start the application and then use debug/process to attach to it. This will allow you to break the program and see if there is some looping problem. Tim Smith I'm going to patent thought. I have yet to see any prior art.

        M 1 Reply Last reply
        0
        • M Mike24

          :mad: Hi out there. I got a problem with an application compiled with Visual NET 2002. My application will not launch when I perform a 'Start without debugging', but will start perfectly if I perform a Start (From the Debug Menu). Once I've performed the start without debugging, I can see that my App is running (an even with 90% of the cpu), but it won't go further ! Same thing if I launch it manually by double-clicking my exe A basic check has been to put a MessageBox at the very first beginning of the program (I can see it when starting From the 'start' menu). This problem only happens with the release configuration of my projects (The debug exe works fine). If anybody could Help, it would be great cyz that stuff is goin to drive me crazy. Thanx in advance Mike.

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

          maybe usefull code put in ASSERT instead of VERIFY ? Max.


          Maximilien Lincourt For success one must aquire one's self

          1 Reply Last reply
          0
          • T Tim Smith

            Start the application and then use debug/process to attach to it. This will allow you to break the program and see if there is some looping problem. Tim Smith I'm going to patent thought. I have yet to see any prior art.

            M Offline
            M Offline
            Mike24
            wrote on last edited by
            #5

            Thanx for your tip. But I had already tried this, but visual is unable to break into my process. Actually it echoes the following message: Unable to break into the process XXX. Please wait until the debuggee has finished loading and try again

            T 1 Reply Last reply
            0
            • M Mike24

              Thanx for your tip. But I had already tried this, but visual is unable to break into my process. Actually it echoes the following message: Unable to break into the process XXX. Please wait until the debuggee has finished loading and try again

              T Offline
              T Offline
              Tim Smith
              wrote on last edited by
              #6

              Does you application use any DLLs that you or a 3rd party wrote? It sounds like on of them might be having problems in their DllMain. Tim Smith I'm going to patent thought. I have yet to see any prior art.

              M 1 Reply Last reply
              0
              • T Tim Smith

                Does you application use any DLLs that you or a 3rd party wrote? It sounds like on of them might be having problems in their DllMain. Tim Smith I'm going to patent thought. I have yet to see any prior art.

                M Offline
                M Offline
                Mike24
                wrote on last edited by
                #7

                Yes indeed. But I got plenty of'em (DX stuff, nvidia cg dlls, my owns...) Gonna have a look at it, thanx

                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