Difference between Debug and Release versions?

Answer Posted / abhishek kesharwani ge mumbai

first of all there is nothing like debug or release this is only a default setting provided by the visual studio app wizard you can change the setting and make the debug as release or vice versa if you want you can create your own version with any name or can delete the existing on.
now here is difference between the default version debug and release.

Debug :
1. preprocessor macro _DEBUG is enabled.
2. compiler code optimization is off.
3. ASSERT is enabled.
4. Debug version of windows library and dll is used.

Release :
1. preprocessor macro NDEBUG is enabled.
2. compiler code optimization is ON.
3. ASSERT is disabled anything inside of ASSERT wan't be executed.
4. Release version of windows library and dll is used.

and one big difference becoz of that sometime code build in the debug is work and release version code do not work or crashed:

all variable in the debug version initialize from a known value that is not happen in the release other cause is on release version compiler optimization setting is ON.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?

3344


how to repaint when working with horizontal scroll bar

1549


List out the basic features of MFC.

13692


I want recent paper pattern for HP company?

1789


How do I create a dialog box in mfc?

611






What is the difference between Struts and JSF? Pls list some most suitable differences.

2845


plzz tell me what we can do and dont in tally ERP & sap business one?

1882


What does mfc stand for?

961


2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers

1811


what message is sent to an application when the user presses the primary button?

1386


What is mfc class hierarchy?

619


How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?

693


what is functioning of DIalodDataXchange ..?

1192


Do you have an idea about MFC?

916