I am programming for a genetic algorithm. there is a class named Chromosome.
populationsize=1000;
Chromosome chromosomelist[populationsize];
when I am using this array of objects chromosomelist to initialize some other object
Chromosome parent1 = chromosomelist[p1];
I am getting access violation error for p1 greater than 20 upto 999, while it is getting executed in another function.
what could be the reason? do I need to post my code?