Jump to content
  • Advertisement

Archived

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

Nash

Stack Problem

This topic is 5328 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

Here is my problem. I have a main app with a ton of globals and it spins a ton of threads. I get a stack overflow error when I run it. In VC++, I set the project setting stack heap/ commit to be a larger value. This fixes my stack error. However, I can''t create all of my threads. I know CreateThread has a stack size param but it does not seem to do anything for me. Could someone explain the stack setting in the project? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Well, having a ton of globals, spinning a ton of threads and running into stack overflow problems sounds like bad design to me. Re-design and you''ll probably have much less problems now and in the future.

Share this post


Link to post
Share on other sites
Increasing the size of the stack may just be masking the problem. Chances are it will come back and bite you in the ass. I would suspect a logic error first. Could be you have some unwanted recursion, or a simple overwrite of a boundry for a local variable.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!