I'm using VC++ 6.0 with SP5. I have a source file in my project that refuses to compile in debug mode but will readily compile in release mode. When I look at the .obj file created for that source file I see that its size is 0 KB for the debug compile case. When in debug configuration the compiler hangs when it comes to this source file.
If I compile in release mode the application works perfectly, as it should, so I know there is no problem with the logic, and there is no ambiguity.
I'm using dynamic memory allocation though, if that helps.
Any ideas?
(Unfortunately I can't post the source code because it's company confidential)
Things to check:
* There are no #ifdef _DEBUG blocks producing different code in debug.
* There are no compiler errors.
* All static libraries linked to in Release are also linked to in Debug.
We'll need to see source code in order to provide better help.
Change the compile options of your file to just run the pre-processesor. It will generate a .i file, it can be huge, but it'll be exactly what the compiler sees.
Try to edit/compile that file to narrow down the problem.