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
David Lowndes - 12 Nov 2007 09:50 GMT
>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
Ben Voigt [C++ MVP] - 12 Nov 2007 16:11 GMT
> Hi,
> all,
[quoted text clipped - 4 lines]
> 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.
> in platform : vista + visual studio 2005
>
> best regards,
> Ning
PH.D.Condidater.Li.Ning - 13 Nov 2007 05:59 GMT
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
Ben Voigt [C++ MVP] - 13 Nov 2007 14:59 GMT
> 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?
> are there any other people here using this ?/
>
> Ning