Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Compiler Warning (level 3) C4293

new in default argument will not free memory if initialization throws an exception

Because an exception can happen while creating an instance of an object, the destructor must be accessible and unambiguous so that the object can be deleted correctly.

Possible solutions

  • Change the access of the delete operator.
  • Compile without exception handling (/GX–).
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.