Note that there are some explanatory texts on larger screens.

plurals
  1. POVector & Stack Overflow - Part Deux
    text
    copied!<p>This is related to the my previous question; <a href="https://stackoverflow.com/questions/11597980/vector-stack-overflow">Vector &amp; Stack Overflow</a></p> <p>But will hopefully explain the new situation (and my new question). So Yesterday i thought i had a break-through in this stack overflow exception, i thought i had solved it. Though at that time i was very tired and had quite a lot of code commented out. </p> <p>This morning, re-working on my game, i started by getting everything back running. To my despair only about half an hour ago to come to the say bloody error message i thought i had overcome yesterday :/. </p> <p>Alas im back at square one, but going onto the answer to my previous question, i'm looking again at trying to find the root cause which i believe is the enemies Animations. Below is my header files for the enemies &amp; animation classes:</p> <p>Anim - <a href="http://pastebin.com/uKQB1RVq" rel="nofollow noreferrer">http://pastebin.com/uKQB1RVq</a></p> <p>Enemies - <a href="http://pastebin.com/pktA1vXi" rel="nofollow noreferrer">http://pastebin.com/pktA1vXi</a></p> <p>As you can see in my enemies class there isn't really anything note worth to talk about, that i feel would be causing this exception, apart from the Animations. (The only other thing is my Timer's class, which is just a few ints and bools, again nothing that i can consider to be memory extensive.) </p> <p>So my question is this;</p> <ol> <li>How can i be 100% positive about this? Is there a way in my IDE (Visual C++ 2010) to see how much stack memory is being used? </li> <li>Leading on from q. 1, what would be a solution to this issue, for example, even though im not 100% sure the animations are the actually cause of the exception, commenting the animations out and say create a vector of animations compiles fine without issue. Would that be the way to go? </li> </ol> <p>*I have testing scenario set up, i know that using the plain old 4 Animation calls if i reduce the array of Vector2's &amp; RectArray's to 15 instead of the 20 (<em>Just to say that these are simple structs, containing ints for the plain old x &amp; y, and then for x, y, width &amp; height</em>) the game compiles up fine(Which is most likely the main reason i'm leaning towards the Animation class being the issue), if i could measure how much stack memory that it is using and then compare that with what creating a vector array of animations uses, then i should hopefully by able to make a good call on whether or not this is more importantly the real issue or if it is infact something else. </p> <p>Edit: So further looking into my overflow, i'm looking into the dis-assembly information for my game. The stack overflow specific points to a specific address where the overflow happens; <strong><em>0xC0000005</em></strong>. </p> <p>Searching for that address i see that i come to this view; <img src="https://i.stack.imgur.com/znwHi.png" alt="enter image description here"></p> <p>I don't really know what to make of what is held in those addresses, all i get is a very large number when i hover over it. All i can say is that there is a lot of these "???" but i suppose those could mean anything. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload