Like Tree1Likes
  • 1 Post By oogabooga

program crashes at run time but not in debugger

This is a discussion on program crashes at run time but not in debugger within the C Programming forums, part of the General Programming Boards category; What does it man when a program crashes at runtime, but does not crash during the step by step execution ...

  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    36

    program crashes at run time but not in debugger

    What does it man when a program crashes at runtime, but does not crash during the step by step execution in a debugger?
    This particular program declares a large number of large size structure variables so probably the program crashing has something to do with this

    Thanks

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,457
    Maybe you simply did not step all the way through? Maybe you compiled with different options?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User TheBigH's Avatar
    Join Date
    May 2010
    Location
    Melbourne, Australia
    Posts
    426
    Is there something wrong with asking the same question in multiple places?
    Code:
    while(!asleep) {
       sheep++;
    }

  5. #5
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    Quote Originally Posted by TheBigH View Post
    Is there something wrong with asking the same question in multiple places?
    I think the idea is that someone here might have put in some effort to answer the question and yet it may have already been answered on the other site.
    Salem likes this.
    The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program runs fine, then crashes 5% of the time
    By mat1z in forum C++ Programming
    Replies: 5
    Last Post: 01-30-2011, 03:28 AM
  2. Visual Studio Just-In-Time Debugger Error
    By JudgeFudge in forum C++ Programming
    Replies: 1
    Last Post: 11-10-2010, 09:38 AM
  3. Getting a C# program with a manifest file to run in the debugger
    By Xarzu Athanasop in forum C# Programming
    Replies: 0
    Last Post: 01-18-2008, 05:34 PM
  4. Just-In-Time Debugger (Visual Studio 2005)
    By Darklighter in forum Tech Board
    Replies: 2
    Last Post: 10-10-2006, 01:43 PM
  5. No compile time errors, exe crashes.
    By RealityFusion in forum C++ Programming
    Replies: 13
    Last Post: 09-06-2005, 12:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21