Thread: Weird error

  1. #1

    Weird error

    I'm getting this error every now and again in my application.. It only comes up when I start the program and it doesn't always come up..

    I use a random number to determine the hand you are dealt in this program (card game) and so I executed 20ish instances of the program to see what sort of good hands you might get dealt straight up and to make sure that it is working by taking cards out of the deck properly..Anywho on the 21st instance I got this --

    "The exception unknown software exception (0xc00000fd) occurred in the application at location 0x77f52cd0."

    I've tried to replicate it and it comes up after different numbers of instances, not a set number.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    That's a stack overflow.

    Maybe some infinite recursion somewhere.....


  3. #3
    oh :| not good... alrighty, I have a few loops so I'll have to try and narrow it down..

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    >> at location 0x77f52cd0

    Build a map file and see if it's in your code.


  5. #5
    Forgive my ignorance, but what is a map file?

  6. #6
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    In VC++ 6.0 project settings, Link tab, General, there's a check box for "Generate mapfile".
    This will create a ".map" file in the output directory.

    The map file shows where all the code is loaded in memory.


  7. #7
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    You can also type "drwtsn32" in the run dialog and get the assembly around where the exception occurred (assuming it is caught by the JIT debugger and not Visual Studio's debugger, etc).

  8. #8
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Just use a debugger man.
    Build the debug build, run the program in the debugger (F5 if you're using a microsoft visual c++)
    Instead of a bunch of hex, it will point you at a line of code.
    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.

  9. #9
    I'm using Dev-C++ and the integrated debugger is buggy for lack of a better word.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do you resolve this error?
    By -EquinoX- in forum C Programming
    Replies: 32
    Last Post: 11-05-2008, 04:35 PM
  2. Errors including <windows.h>
    By jw232 in forum Windows Programming
    Replies: 4
    Last Post: 07-29-2008, 01:29 PM
  3. Quantum Random Bit Generator
    By shawnt in forum C++ Programming
    Replies: 62
    Last Post: 06-18-2008, 10:17 AM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 07:55 AM