Computing.Net > Forums > Programming > run-time check failure #2 in C++

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

run-time check failure #2 in C++

Reply to Message Icon

Name: coolkang
Date: September 25, 2003 at 12:29:45 Pacific
OS: XP
CPU/Ram: 2.53gz/256
Comment:

hello
Does anybody know how to fix or find the problem of this error/message (run-time check failure #2). At first I run the program in C++ 6.0 but I have install a new version VS2003.net which has the C++ 6.0. When I try to run the program I'm keep on getting the message (run-time check failure #2). Please tell me what to do.



Sponsored Link
Ads by Google

Response Number 1
Name: AlexStocko
Date: September 25, 2003 at 12:32:44 Pacific
Reply:

If you posted some code it would be more helpful, but that sounds like a buffer overflow which has killed the stack.


0

Response Number 2
Name: coolkang
Date: September 25, 2003 at 13:05:21 Pacific
Reply:

the code is too long to post. is there a way to find the overflow buffer and fix it.


0

Response Number 3
Name: AlexStocko
Date: September 25, 2003 at 13:41:53 Pacific
Reply:

Well this would be an example of a common one:

char test[3] = "Hello";

Anything that overflows the buffer would create that error.

You can email the source to me if you want and I'll have a look through it.

alexstocko@hotmail.com


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Snooker (2D). Game Prg. Perl Script newbie questi...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: run-time check failure #2 in C++

Help! Test if a number is Prime in C++ www.computing.net/answers/programming/help-test-if-a-number-is-prime-in-c/2794.html

Return 2-D Array in C www.computing.net/answers/programming/return-2d-array-in-c/13956.html

prob with Linked list in C www.computing.net/answers/programming/prob-with-linked-list-in-c/481.html