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

In SDI how many view's are attached to document object and in MDI how many view's are attached to Document object?

2 Answers   Wipro,


1)does Frame Thickness in MFC?

1 Answers   winfoware,


What is the difference between ASSERT and VERIFY?

2 Answers  


how does the UIThread and worker thread communicates and handle events

2 Answers   HCL,


Explain Doc/View architecture

6 Answers   Huawei,






what is the use of CCmdTarget?

4 Answers   Siemens,


What is the difference between the SDI and MDI

3 Answers   Invensys,


What is the difference between the Encapsulation and Abstraction

25 Answers   HCL, Invensys, TCS, Wipro,


1)How to change a text of a button in runtime?

2 Answers  


How to update windows title bar dynamically?

7 Answers   HCL,


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

0 Answers  


what is the difference between compiling and building?

1 Answers  


Categories