Hi, this might be a silly question, but I have had some confusion on how the stack works in C. From what I understand, the stack is usually 1 Megabyte if I compile using cl. I had originally thought that if I somehow used more than 1 Megabyte, I would get a compiler error saying I needed to set the stack larger or refactor my code (I am not sure if this is true). I have realized that this probably is not possible if I have split up my code into dlls as the compiler would not know how much memory on the stack functions from a dll would need. Is this true? And is running out of stack-space a common error or does this mean I am missing something major?
The reason I am asking this question is I have started running into an Unhandled exception / Stack overflow with ig7icd64.dll when I call the opengl function glLinkProgram on certain shaders. This error only appears on my laptop which have an older graphics card (Intel(R) HD Graphics 4000). It also only started showing up after I had reached a certain amount of code. I have been able to run the program with no problem on 2 other machines, and when I increased the stack size by a little the error seems to go away altogether. I am not sure if I should be worried or if older machines might just need a little larger of a stack.