What is the difference between ASSERT and VERIFY?

Answers were Sorted based on User's Feedback



What is the difference between ASSERT and VERIFY?..

Answer / hari krishna

Hi,

ASSERT evaluates the expression only in the debug version
and will throw an exception if the result is 0 and the
program termintes.

VERIFY evalutes the expression in Debug and Release version
also and if the result is 0, will throw an exception only
in Debug mode.

Is This Answer Correct ?    18 Yes 0 No

What is the difference between ASSERT and VERIFY?..

Answer / srinivas endra

The main difference between ASSERT and VERIFY is when you
compile the release build of the program.

ASSERT will not be present in the release build version of
the executables/dlls, and its expression that would have
been evaluated will be deleted.

VERIFY will be present in the release build version of the
executables/dlls but its expression that would have been
evaluated will be left intact.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More MFC Interview Questions

Can you explaing the relashionship between document,frame and view ?

2 Answers  


1) Enable or disable a Cancel button at run time?

1 Answers   HCL,


what is the use of CWinApp class?

3 Answers   Mphasis,


In MFC By Using Communication Between Dialog Boxes,How Can We Send Message Of one Dialog Box To Another Dialog.?

3 Answers   Financial Technologies,


What function is used to disable a control at runtime?

7 Answers  






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

0 Answers   TCS,


Given two processes, how can they share memory?

2 Answers   Microsoft,


What is the difference between OnInitialUpdate and OnUpdate?

5 Answers  


Tell me about different kinds of synchranization objects ?

6 Answers  


Psychic Window Technique

2 Answers   E Logic, Wild Net,


What is the use of message map ?

5 Answers   TCS,


What is primitive and non-primitive application?

2 Answers   HCL,


Categories