Thread: Corrupt

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    40

    Corrupt

    I get this when exiting my program no idea what it means.

    Code:
    Run-Time Check Failure #2 - Stack around the variable 'cube' was corrupted.
    any ideas of what could be fixed?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > any ideas of what could be fixed?
    Your code of course!

    Look at your 'cube' variable.
    Is it an array, or are there arrays close by?
    Could any of those arrays have overflowed? The answer is yes, but you need to find out which one.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Sep 2005
    Posts
    40
    hmm, ok ill check it out.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Corrupt stack driving me up a wall for several days!
    By CornJer in forum C++ Programming
    Replies: 4
    Last Post: 11-07-2007, 10:52 AM
  2. debugging information corrupt
    By silk.odyssey in forum C++ Programming
    Replies: 2
    Last Post: 07-28-2004, 04:52 AM
  3. Root Filesystem corrupt!!!!!!
    By mart_man00 in forum Tech Board
    Replies: 7
    Last Post: 02-16-2003, 05:48 PM
  4. chances of being corrupt?
    By Ganon of Evil in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 10-09-2002, 03:21 PM
  5. Corrupt File.
    By Sentaku senshi in forum Tech Board
    Replies: 2
    Last Post: 09-06-2002, 02:09 PM