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 ..
views:
26answers:
2
+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
2010-05-05 08:12:17
i cant find how to create PDB files , i guess they talking about c#im using c++
2010-05-05 08:53:07
A:
Check the projects settings which are different for debug and release modes, maybe you will find an answer there.
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.
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.
Create PDBs, it can be done for native C++ too.
Eugene
2010-05-05 09:18:28