What are memory leaks? (and how to detect them)

preview_player
Показать описание
Consider supporting my work by donating to my PayPal:

In this video I talk about things like memory management, memory leaks, manual memory allocation and deallocation, garbage collection, static and dynamic variables, stack, heap, software aging, programming languages C++, C, C#, Java and more. I show some examples of memory leaks in C++ and also how to detect them.

Check out my new video called "5 Basic Concepts of Web programming":

If you have any thoughts, questions or ideas for my next video, leave them in the comments. Also, the best way to support me is to like and share the video. Thanks for watching!
_________________________________________________________
Social media:
Рекомендации по теме
Комментарии
Автор

Your structure is 16 bytes because the most big element in the structure is double which is 8 bytes. And compiler will do "Memory alignment" so the structure size will be multiple of 8. And the next multiple of 8 from 12 is 16.

mrhrush
Автор

Thanks for this video, I am watching it for my Operating Systems course to learn about memory leaks. I have not learned C++ yet but I will soon.

lilybohr
Автор

Double D grew up to be a software engineer 😂

hoseashpm
Автор

I don't even do programming or know much about it, but I love your videos 😍 Keep up the good work 😊

Olja
Автор

Operator delete[] should be used when you are deleting an array.

Sebanisu
Автор

TFW you still get memory leaks in your program that has garbage collection 🤦‍♀️

SimGunther