c++ - Warning message regarding stack size -


i use visual studio 2010 code analysis activated. in code there's line allocating memory in function:

tchar somestring[40000];  

the code analysis throws warning message:

warning c6262: function uses '40000' bytes of stack: exceeds /analyze:stacksize'16384'. consider moving data heap

i wonder if should take warning serious. have face real trouble if allocate memory on stack > 16384? or general warning message reminds me have take care stack size in general? far know default stack size 1mb (if use visual studio).

admittedly, message can confusing since vs (project properties) report default 1m. however, if @ text of warning, you'll note limit 16k code analysis. follow steps @ bottom of link correct warning.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -