Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Profiling with Visual C++ 5 and 6: a story of woe

Author: José Carlos

Date: 03:39:24 02/01/00

Go up one level in this thread


On January 31, 2000 at 18:59:55, Tom Kerrigan wrote:

>Up until now, I've used VC++ 5.
>
>My chess program is a "Win32 Console Application."
>
>Try as I might, I could NOT get the VC++ 5.0 profiler to work. It showed me some
>dialog boxes and then it did absolutely nothing. I messed with this for hours on
>end and still could not get it to do a damn thing.
>
>Today I got VC++ 6.
>
>I ran the profiler and it does something!!! Imagine my joy! Here's what it does:
>it brings up the Console window. So far so good. Then it prints the following
>line over and over and over again in the little "Output" window:
>
>stobor> Illegal move.
>
>Evidently VC++ keeps sending my program the string "ÖA", whatever that means.
>There is some other bizarre behavior, like not opening a log file. If I press
>Control-C in the Console window, the little "Output" window will display the
>profiling results. Namely, that my program spent the entire time printing stuff
>out.
>
>Does anybody know how to make this work?? :(  I really appreciate it in advance.
>
>-Tom

  This is what I do (VC++ 6.0)

  In main(), after initilizing everything, instead of waiting for a user entry,
I directly read from a file a position and analyze it to a fixed depth. After
that, I immediately exit. This way, there's no communication with the user, and
therefore, no time spent.
  Just change the code and comment it when normally compliling, to keep it for
the next profile.

  José C.



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.