943,931 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1090
  • C++ RSS
May 23rd, 2006
0

code currupt

Expand Post »
hello,
am doing a project for school . it involves a lot of file and string operations and i keep compiling the code over and over again to see if it is working properly ... all of a sudden the code simple stopped executing .. the code ran a number of times before now it just refuses to run ... why does the code corrupt so easily ?? is there any solution to this ??coz i dont want the code to crash during my demo... i use the bloodshed Dev C++ compiler .
pls help
thankx
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
achala is offline Offline
13 posts
since May 2006
May 23rd, 2006
0

Re: code currupt

let me see that code?
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
May 23rd, 2006
0

Re: code currupt

Sorry, but you wore out your code. The only way to fix the problem is to print the source out and then type it all back in fresh. This also happens when you let code sit too long and it starts to rot.

But seriously, if your code suddenly stops working it means you either introduced a bug, or uncovered an existing bug.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
May 23rd, 2006
0

Re: code currupt

i deleted that code .. every bit of it ... have to type it in again ... but am surethat if i run it again too many times to correct it its gonno crash again ... just wanted to knw if there is anything i can do to avoid it ?? is this coz of the memory locations being used over and over again ?? can this be avoided?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
achala is offline Offline
13 posts
since May 2006
May 23rd, 2006
0

Re: code currupt

>is this coz of the memory locations being used over and over again ??
Memory doesn't work that way.

>but am surethat if i run it again too many times to correct it its gonno crash again
What makes you so sure? It sounds like you're trying to blame everything but yourself, when the problem is 99.9% sure to be you.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
May 24th, 2006
0

Re: code currupt

maybe ur rite.. sorry .. wil try again.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
achala is offline Offline
13 posts
since May 2006
May 24th, 2006
0

Re: code currupt

Quote originally posted by Narue ...
Sorry, but you wore out your code. The only way to fix the problem is to print the source out and then type it all back in fresh. This also happens when you let code sit too long and it starts to rot..
:cheesy: :cheesy: :cheesy: you really should have put a smily after that so that some gullible sole (like me) will see the satire. Funniest thing I've read all day.:cheesy:
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,953 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Quick question about switch()
Next Thread in C++ Forum Timeline: To thread or not to thread?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC