.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

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -