Original Post
so I have this simple code ( just to demonstrate problem ) and it compiles without errors with Visual C++ 2005 EE ( debug and release version ) but it crashes when I try to start debug version , but release version starts normally. On the other hand latest Code::Blocks 8.02 also compile fine and runs debug&release version without crashes. If someone could explain this I would be very grateful. thx
#include <iostream>
using namespace std;
class HeightMap
{
static const int width=1024;
static const int height=1024;
public:
char map[width][height];
};
int main()
{
HeightMap hm;
return 0;
}