Answered by:
How to avoid stack trace in VC++ .NET 2008

Question
-
Hi,
I am working in .NET VC++ using VS 2008 in a windows application. I want to do following - I have not handled any exception in my application. Now if i create intsaller [after building application in release mode] and run my application and if there any exception comes then application shows on dialog box having "Details", "Continue" and "Quit" buttons. On click of "Details" button complete stack trace is shown to me. It means exe which was created in release mode is having some debug information [please correct me if i am wrong]. If exe is having some debug information then application will be slow as compared if it will not have any debug info. I believe there should be some project settings so that exe will be created without any debug inormation. Can any one let me know if there is any setting? Or is this the default behaviour of .NET application? I want to avoid stack trace in release mode. How to do that? Please help me. Let me know if any otehr information is needed.
Thanks
ITChampTuesday, March 16, 2010 6:43 AM
Answers
-
Turn off the /DEBUG flag in your project's linker settings.
- Proposed as answer by Nancy Shao Thursday, March 18, 2010 2:54 AM
- Marked as answer by Nancy Shao Tuesday, March 23, 2010 2:03 AM
Tuesday, March 16, 2010 9:12 AM
All replies
-
Turn off the /DEBUG flag in your project's linker settings.
- Proposed as answer by Nancy Shao Thursday, March 18, 2010 2:54 AM
- Marked as answer by Nancy Shao Tuesday, March 23, 2010 2:03 AM
Tuesday, March 16, 2010 9:12 AM -
Thanks for quick reply.
Even after turning off /DEBUG flag, i am still getting same dialog box:(. Do i need to set some other flag also?
ITChampWednesday, March 17, 2010 4:00 AM -
Did you do a clean and full rebuild after changing the setting? If not, your old debug symbols will still be in place.Wednesday, March 17, 2010 4:01 AM
-
Hi ITChamp,
To turn off /debug flag, you can specify NO to Generate Debug Info by navigating to Project Properties > Configuration Properties > Linker > Debugging. And referring to ildjarn's suggestion, do a clean and rebuild after changing the setting.
Please let us know the result.
Best Regards,
Nancy
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.Thursday, March 18, 2010 3:07 AM