Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Help with Release/Debug

Author: J. Wesley Cleveland

Date: 11:05:13 06/14/99

Go up one level in this thread


On June 13, 1999 at 18:11:14, James Robertson wrote:

>On June 13, 1999 at 14:04:21, J. Wesley Cleveland wrote:
>
>>On June 13, 1999 at 13:00:35, James Robertson wrote:
>>
>>[snip]
>>>My question is: could someone please provide me with some debug/release theory
>>>under MSVC and what the differences are? It might really help me discover where
>>>the other two bugs are.
>>>
>>
>>I am not at work, but IIRC, the main difference is that debug zeros all
>>unitialized memory. It also has many facilities for debugging errors with
>>allocated memory, e.g. out of bounds writes, using freed memory, not freeing all
>>memory. Browse through the help system under debugging and see what you find (or
>>wait until someone gives a better answer).
>
>Is there any way to get the debygger to issue warnings if an array read/write
>exceeds it's bounds?
>
>James

There is a function _CrtCheckMemory that will validate the heap whenever it is
called. Look in your help under "Using Visual C++" for "Debugging Techniques,
Problems, and Solutions" for more info.



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.