How can i turn off the "Run-Time Check Failure #3" warning??

  • Thread starter Thread starter PH.D.Condidater.Li.Ning
  • Start date Start date
P

PH.D.Condidater.Li.Ning

Hi,
all,

I am using an uninitialised variable that generating a 'Run-Time Check
Failure #3' when the
debug version is running. The code is complex and changing it would be
risky, so
how do I turn off this annoying run time check?

in platform : vista + visual studio 2005

best regards,
Ning
 
I am using an uninitialised variable that generating a 'Run-Time Check
Failure #3' when the
debug version is running. The code is complex and changing it would be
risky, so
how do I turn off this annoying run time check?

I'd seriously question the decision to switch this off, but if you
really do want to do that rather than change your code, have a look at
the /RTC (Run-Time Error Checks) compiler options.

Dave
 
PH.D.Condidater.Li.Ning said:
Hi,
all,

I am using an uninitialised variable that generating a 'Run-Time Check
Failure #3' when the
debug version is running. The code is complex and changing it would be
risky, so
how do I turn off this annoying run time check?

Unless the code is outright wrong, changing the declaration to set an
initial value (probably zero) won't change the behavior.

However I suspect that the code IS wrong if you are triggering runtime
checks. Sometimes complex code can confuse a static analyzer but the
runtime checks should be correct.
 
Thankyou very much!

i was using SuperLU 3.0, there is a variable named iperm, it was not
declared before us.

are there any other people here using this ?/

Ning
 
PH.D.Condidater.Li.Ning said:
Thankyou very much!

i was using SuperLU 3.0, there is a variable named iperm, it was not
declared before us.

That's not possible, with both C and C++ all variables must be declared
prior to use. Have you checked global variables and header files?
 
Back
Top