Fog Creek Software
Discussion Board




Turning off Runtime Check in VC7

Hi

In VC7, there is this compile option /RTCu which helps you detect use of an unintialised variable in debug builds. I tried turning it off in projects properties>C++>Code generation, and rebuilt the solution but the error message still pops up.

Does any one know what I am missing?
Thanks!

Kelvin
Friday, May 14, 2004

The compiler probably detected the uninitialized variable during static checking. Try decreasing the warning level.

Chris Nahr
Friday, May 14, 2004

Tried that but it didn't work.
Isn't the warning level for compile time errors?

I am referring to a popup while running the program.

Debug Error!
....
Run-Time Check Failure #3 - The variable 'x' is being used without being defined.

Kelvin
Friday, May 14, 2004

Sorry, I misunderstood that. I don't know what happened then, unless it's the Visual Studio build engine again that doesn't know what to rebuild.

Try the Rebuild command that does a full rebuild -- it's not on the Build toolbar by default. Also try closing & restarting Visual Studio.

Chris Nahr
Friday, May 14, 2004

I suppose it goes without saying that you ought to actually fix the problem with your code, as well...

-Mark

Mark Bessey
Friday, May 14, 2004

Uh yeah the way to fix that error is to initialize x before you use it...

Mr Fancypants
Friday, May 14, 2004

I didn't managed to figure it out, but I took the advice to make sure the variables are initialised. Thanks for the help.

Kelvin
Sunday, May 16, 2004

*  Recent Topics

*  Fog Creek Home