Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: C++ coding question. (OT)

Author: Paul Clarke

Date: 07:29:00 07/13/04

Go up one level in this thread


On July 13, 2004 at 08:59:12, Tor Lattimore wrote:

>Hi.
>Occasionally I might be running my program and it will simply stop and the
>console will disappear with 'an illegal operation has been performed'. Is there
>a way to see what sort of error caused the problem? It would be most usefull if
>I could know whether it was div by 0, reading past the end of an array, or
>recursing too many times.

Do you have a debugger available? If so, run your program under the control of
the debugger until the problem occurs.

If the problem doesn't occur often enough for this to be practical, and you're
running on Windows, you can configure the system to run a debugger automatically
whenever such an error occurs - see
http://support.microsoft.com/default.aspx?scid=kb;en-us;103861.




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.