Jump to content
  • Advertisement

Archived

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

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

Are there limits as to how many objects you can have in a function or program in c++? When I had 2 objects in my winmain it would complile but crash and exit when run. I moved one of the objects out of the winmain and made it global and it compiles and run flawlessly. Are there limits on memory for varialbes used in functions and if so what are they and how can they be altered. OneEyeLessThanNone - needs gramar school.

Share this post


Link to post
Share on other sites
Advertisement
not that I know of. I''m assumming that when you say object that means a class... Your problem is probably in the constructor or distructor for the cass(calls on something that hasn''t been initalized yet) use your debug to find where it is....

Great Milenko

Words Of Wisdom:
"Never Stick A Pretzel In Your Butt It Might Break Off In There."


http://www.crosswinds.net/~milenko
http://www.crosswinds.net/~pirotech

Share this post


Link to post
Share on other sites
Yes by object I mean class, but I''m not calling something that is not initilized. The new class I introduced has only one function and has no variables in it. Plus if i did called on something it would not matter if its local or global would it? I''ve had this problem before when I had several classes in a funcion.

OneEyeLessThanNone

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!