Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: need an advice how to detect a bug

Author: Marcel Veldhuizen

Date: 05:57:43 11/04/02

Go up one level in this thread


Sounds like you're using some uninitialized memory, which may be out of bounds
memory, or simply memory that was allocated, but never set before being used.

I don't know what environment you use, but in debug mode MS Visual C(++) sets
all allocated memory bytes to (I believe) 0xCC, in release move the content will
be random, which could explain the different behavior in both builds.

Without going into third party bounds checkers, the assert() macro is your
friend ;)



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.