Failing Debug vs Working Release ?
-
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
-
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
-
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
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.
-
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.
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
-
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
Thanks, but as you expected I have no arguments specified there !