Computer Chess Club Archives


Search

Terms

Messages

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

Author: Tom Likens

Date: 07:27:19 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.
>Thanks for your help
>Tor

Hello Tor,

It sounds like you have a memory corruption problem.  You might try running
your engine under a program such as BoundsChecker (or if you're  using Linux,
Valgrind which is free).  There are also a number of free tools (mostly wrappers
around malloc) that will check that memory allocated with malloc/new is used
correctly.

good luck,
--tom



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.