Take the 2-minute tour ×

Hi i have strange problem , my application (exe) is working fine in debug mode in windows 7 but stop to work with exception when compiling in release mode . how can i debug the program to find what is causing the exception this is application with more then 300,000 lines of code ..

share|improve this question
Is that .NET or C++? Or something different? –  Dirk Vollmar - 0xA3 May 5 '10 at 8:21
it is c++ im working in –  user63898 May 5 '10 at 8:42

2 Answers 2

up vote 2 down vote accepted

Compile in Release mode but create the .pdb files: How to generate PDB’s for .net managed projects in release mode?

Deploy the .pdb files to same folder as the .exe.

Then attach to process.

share|improve this answer
i cant find how to create PDB files , i guess they talking about c# im using c++ –  user63898 May 5 '10 at 8:53
  1. Check the projects settings which are different for debug and release modes, maybe you will find an answer there.

  2. Compile release mode with debug information and turn off optimization. You will have debug version compiled with release defines. If it fails the debugger will show you bad place.

  3. Just turn off optimization. Once upon a time that was an issue for me. In this case it will be really hard to find out the cause.

  4. Create PDBs, it can be done for native C++ too.

share|improve this answer

Your Answer


