.net - complex<double> size error overflow -


this question has answer here:

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

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -