Re: Program Crashing From Running Too Fast?
From: Old Wolf (oldwolf_at_inspire.net.nz)
Date: 08/26/04
- Next message: David Hilsee: "Re: help needed in macro syntax"
- Previous message: Ioannis Vranos: "Re: 2 dimensional arrays"
- In reply to: Daragoth: "Program Crashing From Running Too Fast?"
- Next in thread: Dave Vandervies: "Re: Program Crashing From Running Too Fast?"
- Reply: Dave Vandervies: "Re: Program Crashing From Running Too Fast?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 25 Aug 2004 15:58:54 -0700
daragoth@kuririnmail.com (Daragoth) wrote:
> [My program fails when some debugging is added]
>
> However, after doing so the program would crash with code "c0000005"
ISTR this is the Windows code for a segfault.
> So my only idea is that the program is running too fast.
Unlikely, to say the least.
> Anyone know what causes this to happen and how to fix it?
Most likely, you have a bug in your program elsewhere that causes
memory corruption, and it only shows up under some circumstances.
Post your code (or preferably, the smallest subset of your code
that shows the problem).
> Also, because I would like to be able to pause the program as well as
> send various other user-input commands to it without stopping it, is
> it possible for a console window to accept keyboard input without
> halting execution of the program? I would prefer not to have to alter
> the entire program to have it run in a window.
You would have to create a background processing thread, or
use a system-specific function that can poll the keyboard
without waiting.
- Next message: David Hilsee: "Re: help needed in macro syntax"
- Previous message: Ioannis Vranos: "Re: 2 dimensional arrays"
- In reply to: Daragoth: "Program Crashing From Running Too Fast?"
- Next in thread: Dave Vandervies: "Re: Program Crashing From Running Too Fast?"
- Reply: Dave Vandervies: "Re: Program Crashing From Running Too Fast?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|