Memory damage

Hello experts.
I am curious about the possible long term effects on memory. How much damage can be done by c++ using dynamic memory? I understand that there can be memory leaks using new and malloc if not freed but that doesn't seem long term. That can be fixed by a basic reboot, correct? Is it possible to do major/long term damage that can affect computer performance such as corrupt windows files, hardware, (I've read some things about stack/heap damage)? If it's possible to do serious damage, what would cause it and how do I prevent it?
Thanks.
T. Loughlin
paintlrdAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dennis_georgeCommented:
Hi,

Each program you make runs as a process.. And when a process is created a chunk of memory if allocated for that process... for its code... for its stack ...for its heap... etc. So the affect of memory leak remains as long as your program /process runs....

No memory leak won't do any hardware curroption or curropt your Operating system (Windows)... It only hinder the performance of your system.... So your system might ruin slow in case of memory leak..... But if the process is terminated, which is causing the memory leak, then the machine will come back to normal state....

Dennis
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
paintlrdAuthor Commented:
Even if there is an access violation?
Thnx
T Loughlin
0
MasudkhanCommented:
Hi,
Access violation will automatically stop your application. For the above mentioned memory leak issues, killing of the process will do & no need tyo restart the sytem for that
--
Masud
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

grg99Commented:
It all depends on how well the operating system was written.  if they overlooked some things, it's very possible to use up some system resource, such as a system file table, or to fil up the disk.    The better systems check every request you make and try to make sure you are not requesting too much of some resource.

Just going by anecdotes, it seems Kinux is very good at checking, as many Linux systems run for months and years without requiring a reboot.   On the other hand, Solaris and Windows NT have in the past had major memory leaks, requiring frequent reboots to reclaim lost memory.

0
grg99Commented:
Sorry, meant to type "Linux", not "Kinux".

Also the program's language doesnt have much to do with this question, you can request memory, files, and other resources from most any language.

0
paintlrdAuthor Commented:
Thanks guys. You all had a part in answering so I split it between all of you. I appreciate it.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.