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

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -