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. Failing Debug vs Working Release ?

Failing Debug vs Working Release ?

Scheduled Pinned Locked Moved C / C++ / MFC
questionvisual-studiodata-structuresdebugginghelp
5 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.
  • O Offline
    O Offline
    od ananzi co za
    wrote on last edited by
    #1

    Guys,I know this question has been asked ad-nausem, but I have the exact opposite problem. My release build works fine, my debug build does not ! I have an application that starts a whole lot of threads for processing multiple feeds of video and audio. In my release build all threads start successfully, but in my debug build some threads fail to start, AfxBeginThread returns NULL and GetLastError return 0. I am assuming that some or other resource has to be increased for my debug build to work. I've increased my stack sizes (in project properties) to 10x what it was without making a difference. What other properties/resources can I try to set for my debug build to work ? Any other reason why some of my threads won't start in debug build ?

    modified on Monday, August 3, 2009 8:27 AM

    S 1 Reply Last reply
    0
    • O od ananzi co za

      Guys,I know this question has been asked ad-nausem, but I have the exact opposite problem. My release build works fine, my debug build does not ! I have an application that starts a whole lot of threads for processing multiple feeds of video and audio. In my release build all threads start successfully, but in my debug build some threads fail to start, AfxBeginThread returns NULL and GetLastError return 0. I am assuming that some or other resource has to be increased for my debug build to work. I've increased my stack sizes (in project properties) to 10x what it was without making a difference. What other properties/resources can I try to set for my debug build to work ? Any other reason why some of my threads won't start in debug build ?

      modified on Monday, August 3, 2009 8:27 AM

      S Offline
      S Offline
      Souldrift
      wrote on last edited by
      #2

      Hm, I had that problem two weeks ago. Solution was simple in my case (well, after almost despairing), in project properties the debug and release version had provided different arguments to the main function. Souldrift

      O 1 Reply Last reply
      0
      • S Souldrift

        Hm, I had that problem two weeks ago. Solution was simple in my case (well, after almost despairing), in project properties the debug and release version had provided different arguments to the main function. Souldrift

        O Offline
        O Offline
        od ananzi co za
        wrote on last edited by
        #3

        Hi Souldrift, Where in the project properties would I see that ? I looked through all the settings, but could not quite see where you can pass arguments to main.

        S 1 Reply Last reply
        0
        • O od ananzi co za

          Hi Souldrift, Where in the project properties would I see that ? I looked through all the settings, but could not quite see where you can pass arguments to main.

          S Offline
          S Offline
          Souldrift
          wrote on last edited by
          #4

          Well, the problem here is, I got the german version. But I try to translate. When I open the project properties there´s on the left side a box where I can find

          * General properties
          * Framework etc ...
          * Configuration properties
          * General
          * Debugging <--
          * C/C++
          * etc.

          You can find it under Configuration properties->Debugging. In the right window you can now see the arguments in the second line. But then again, if you don´t know this property, then you most like didn´t enter anything in into it, anyway. You can use this to 'simulate' (argc, argv) arguments of a main function .. if your project has one. And as for everything else, you can do this seperately for Release and Debug version. Souldrift

          O 1 Reply Last reply
          0
          • S Souldrift

            Well, the problem here is, I got the german version. But I try to translate. When I open the project properties there´s on the left side a box where I can find

            * General properties
            * Framework etc ...
            * Configuration properties
            * General
            * Debugging <--
            * C/C++
            * etc.

            You can find it under Configuration properties->Debugging. In the right window you can now see the arguments in the second line. But then again, if you don´t know this property, then you most like didn´t enter anything in into it, anyway. You can use this to 'simulate' (argc, argv) arguments of a main function .. if your project has one. And as for everything else, you can do this seperately for Release and Debug version. Souldrift

            O Offline
            O Offline
            od ananzi co za
            wrote on last edited by
            #5

            Thanks, but as you expected I have no arguments specified there !

            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