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

  • Thread starter PH.D.Condidater.Li.Ning
  • 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
 
D

David Lowndes

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
 
B

Ben Voigt [C++ MVP]

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.
 
P

PH.D.Condidater.Li.Ning

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
 
B

Ben Voigt [C++ MVP]

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top