C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 05-22-2007, 04:18 PM   #1
Registered User
 
IndioDoido's Avatar
 
Join Date: Apr 2007
Posts: 194
Run-Time Check Failure #2 - Stack around the variable 'novouser' was corrupted.

hi!

when i', running my C project it gives me this error:

- Run-Time Check Failure #2 - Stack around the variable 'novouser' was corrupted.

This error apears when i change my actual username for a new one. But if i say ignore on the error in the message box, the program continues and the new username is saved :-S

??
__________________
"Artificial Intelligence usually beats natural stupidity."
IndioDoido is offline   Reply With Quote
Old 05-22-2007, 05:17 PM   #2
Registered User
 
Join Date: Sep 2006
Posts: 3,720
As you may know, the stack is that area that deals with parameter passing, amongst other things. IMO it's a serious warning, and definitely worth fixing.

For anything more than general hints, you'll have to post up your code.
Adak is offline   Reply With Quote
Old 05-22-2007, 11:09 PM   #3
CSharpener
 
vart's Avatar
 
Join Date: Oct 2006
Posts: 5,556
probably - you have a buffer that is not big enough to store the new name... You SHOULD fix this error.
__________________
If I have eight hours for cutting wood, I spend six sharpening my axe.
vart is offline   Reply With Quote
Old 05-22-2007, 11:42 PM   #4
and the hat of Destiny
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 22,495
The compiler in debug mode has added padding around variables to detect when you overrun the allocated space.
In a release build, you'll have no such safety net and a real hard crash could be mere moments away.

vart is right, you need to fix this ASAP.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Salem is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Timing is incorret Drew C++ Programming 5 08-28-2003 04:57 PM
inputting time in separate compilation sameintheend01 C++ Programming 6 03-13-2003 04:33 AM
I apologize. Good bye. doubleanti A Brief History of Cprogramming.com 14 05-03-2002 06:51 PM
Create class at run time muaed A Brief History of Cprogramming.com 3 04-11-2002 08:13 AM
Stack functions as arrays instead of node pointers sballew C Programming 8 12-04-2001 11:13 AM


All times are GMT -6. The time now is 12:02 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22