Why does the program exit with exception when i use the array variant instead of the pointer.
int main()
{
  //  unsigned char data[1920 * 1080 * 4];   this causes the  exception
    unsigned char* data = new unsigned char[1920 * 1080 * 4];
    std::cout << "Hello World!\n";
}
 
    