.net - complex<double> size error overflow -
this question has answer here:
- segmentation fault on large array sizes 5 answers
long int const qwerty= 500000; double ex[qwerty];
my signal have 500k of sample. need have in complex or double got error 'system.stackoverflowexception' occurred in project1.exe" why ?. when qwerty lower 20k works fine.
you creating array of 500k on stack. stack has limited memory. if want create big allocate on heap.
edit: or better yet, use std::vector. source
Comments
Post a Comment