Thursday, April 01, 2010

[CPP][Debug] This application has requested the Runtime to terminate it in an unusual way.

Environment

VC++ 2008 Expression

Syndrome

The program is terminated with the following message:

This application has requested the Runtime to terminate it in an unusual way.

Please contact the application's support team for more information.

Potential Cause

  • Inappropriate memory allocation, such as a new with undefined/abnormally large array size.
    int len;
    int *x = new int[len]; // uninitialized len