Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PH.D.Condidater.Li.Ning - 12 Nov 2007 08:27 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.