Segmentation fault after having a certain number of elements in an array?
Paul via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Dec 13 01:24:49 PST 2014
On Saturday, 13 December 2014 at 08:59:19 UTC, Jeremy DeHaan
wrote:
> for(int i = 0; i<samples.length; ++i)
> m_samples.length +=1;
You are testing i against an ever-increasing limit aren't you, so
it's an infinite loop.
More information about the Digitalmars-d-learn
mailing list