I have a C++ object in some part of my code like this:
class Object
{
public :
float a, b, c;
}
When I create a 2 dimensional array like this, it works fine :
Object myArray [500][500];
When I make it like this, I get segmentation fault :
Object myArray [1000][1000];
What causes that segmentation fault, how can I get rid of it? Thanks.