There may be several reasons, but in order to indicate one, you will need to provide us with some code to work.
This could be a code exception:
#ifdef _DEBUG
#endif
This will only be done in debug mode.
It can be optimization. Although they should not normally influence behavior, you should not rely on calls to destructors or copies.
If you do a hack inside the code, it can also be valid only for debugging.
source
share