Archived

This topic is now archived and is closed to further replies.

Stack Overflow

This topic is 5604 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I get this error if i start my app: untreated exception in Demo_1.exe(Kernel32.Dll): 0xC00000FD: Stack Overflow All runs very fine but ´when i close the app i get this error (VC++ Debugger). Can someone help me?

Share this post


Link to post
Share on other sites
Allocate large data structures on heap (new,malloc) instead of stack. An example:

  
// bad

int large_array[1024][1024];
// better, i.e. no stack overflow issues

int* large_array = new int[1024*1024];


Hope this helps,
Pat

PS: You can also increase you stack frame (look at the VC documentation for more info on this topic).

Share this post


Link to post
Share on other sites