views:

26

answers:

2

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 ..

+2  A: 

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.

Mitch Wheat
i cant find how to create PDB files , i guess they talking about c#im using c++
A: 
  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.

Eugene