Computer Chess Club Archives


Search

Terms

Messages

Subject: MSVC Bugs.

Author: Miguel A. Ballicora

Date: 13:12:24 11/27/01


Has anybody experienced bugs from MS Visual C 6.0 when programming in C?
A couple of times I have observed weird behaviors that after a lot of debugging
I had to conclude that there was something weird with the compiler or optimizer.
For instance, I include a printf() to debug part of the program and that was
never printed. It just skipped that instruction. I had no idea what it was
because I just rewrote the function to make it work. Most of the time I think
that I am wrong (most of the time I am wrong) but there are some things that do
not make sense. Now I am facing a problem that probably is me, but it look very
suspicious. I'll comment on that when I am sure I spent enough time on it.
I know that the probability to find bugs on the compiler or the libraries is not
zero. Some time ago I found something like this in one of the header files
provided with the libraries (I think it was time.h)

#define SOMETHING CONSTANT+4

when it should be

#define SOMETHING (CONSTANT+4)

Forgetting the () is really bad. I was hunting ghosts for while until I decided
that there was nothing wrong with my code.

Does anybody experience weird behaviors from this compiler?
I know that I have improve my "C", I just want to know whether I am crazy
or not :-)

Regards,
Miguel







This page took 0.01 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.