Advertisement

Stack Corrupted?

Started by November 27, 2002 12:14 PM
7 comments, last by Phantom88 22 years, 3 months ago
This is not actually a OpenGL related question, but well, here it goes: Any ideas what could cause this error in VC++?(its a runtime error, not build. It doesn''t affect the functionality of the code, but its annoying): "Run-Time Check Failure #2 - Stack around the variable ''version'' was corrupted." Any help would be *very* appreciated. ~Phantom88~
quote:
Original post by Phantom88
It doesn''t affect the functionality of the code

you really think so?
Advertisement
I''ve had that occur before a couple of times.. if I remember it came down to writing out of the bounds of an array... which is always going to cause really weird problems.

| - Project-X - my mega project.. big things comming soon - | - adDeath - an ad blocker I made - | - email me - |
Well, atleast it doesn''t cause any visible problems...

~Phantom88~
quote:
Original post by Phantom88
Well, atleast it doesn''t cause any visible problems...


not yet.

does the function in question have any stack-based arrays?
RipTorn is right. It occures when writing to unallocated space (out of bounds of array). Enable some memmory leak detection to found out where and why. And don''t settle for "It doesn''t affect the functionality of the code". It''s gonna come back and bite you in the s** some day.

You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.
Advertisement
quote:
Original post by _DarkWIng_
And don''t settle for "It doesn''t affect the functionality of the code". It''s gonna come back and bite you in the s** some day.

No, ofcourse not, i''ll search out the bug. I never leave bugs in my code. It was just an additional info...

~Phantom88~
quote:
Original post by _DarkWIng_
It''s gonna come back and bite you in the s** some day.


Okay, I give up. What three-letter swear-word starts with "s"?


Don''t listen to me. I''ve had too much coffee.
typo ... sorry .. but you get the idea....

You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.

This topic is closed to new replies.

Advertisement