What is memory leak?

Поділитися
Вставка
  • Опубліковано 27 жов 2024

КОМЕНТАРІ • 60

  • @codebasics
    @codebasics  2 роки тому +7

    Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.

  • @preciousjose
    @preciousjose 4 роки тому +74

    This cannot be explained any more clearer. Excellent video.

  • @kmcgaughmohr
    @kmcgaughmohr 3 роки тому +23

    Thanks for the explanation; saved me a lot of time. An entire 2 hour lecture on this wasted. The teacher could've just explained it short and sweet like this. You're a life saver. Keep up the good work!

  • @vipinsachan111
    @vipinsachan111 5 років тому +13

    once the process ends, the all the acquired memory is returned...please correct it at 2:20

    • @Elinzar
      @Elinzar 4 роки тому +1

      okay yeah, that part confuse me a lot
      like in a Modern OS like windows 10, wouldn't it be super retarded for the OS to not free that memory space after the program ended?
      maybe he is speaking for programs that are made in Micro Controllers where there is No OS to handle that?
      yep i need explanations

    • @ynk69
      @ynk69 4 роки тому +5

      ​@@Elinzar its not a problem for windows as it clears the allocated memory when the process ends, but in a complex program if you dont clear up the memory when its not needed anymore the program may run out avaible memory that could be used for other things and your program will use memory pointless. Yeah if there is no OS that handle this problem you always need to clear the memory yourself or else you really run out of it.

    • @Elinzar
      @Elinzar 4 роки тому +1

      @@ynk69 thanks for clearing my doubts

  • @premtiwari8960
    @premtiwari8960 3 роки тому +2

    ❤️❤️i love your chennal .. sir you are doing so good work .. i love it .. thanks you sir for helping students and teaching us of free of cost ...

  • @nsns7993
    @nsns7993 6 років тому +19

    Genius reference

  • @erawanthewise8227
    @erawanthewise8227 3 роки тому +2

    Great explantion! Deserve a sub.

    • @codebasics
      @codebasics  3 роки тому +2

      I am happy this was helpful to you.

  • @skkkks2321
    @skkkks2321 4 роки тому +2

    Surprises are everywhere,last weeks I had an interview after one year.so the question was the same..what is memory leak.and What is Pointer..I was good about their main task their platform, but knocked down by this question.Thanks to touch the point.It really worth to know.Great job...

  • @TheImaginativeSachin
    @TheImaginativeSachin Рік тому

    Thank you the tap example was awesome.

  • @amruthas6974
    @amruthas6974 5 років тому +4

    Thank u sir for making the concept so clear..

    • @codebasics
      @codebasics  5 років тому +2

      Amrutha I am happy you liked it 👍

  • @rajastylez
    @rajastylez 7 років тому +38

    Lol at the start of your video

  • @HopperNation
    @HopperNation 2 роки тому +1

    Thank you so much!!! So easy to understand now! Very good explanation!!

  • @fishingtrippy
    @fishingtrippy Рік тому

    Love the ending. Good video

  • @Identify0909
    @Identify0909 3 роки тому +5

    best intro i've seen. I'm subscribing for sure

  • @Myzzz12
    @Myzzz12 3 роки тому +1

    Very good explanation, thanks

  • @Mastavalons
    @Mastavalons 6 років тому +10

    There a lot of profilers for complex application for auto memory leak detection - Valgrind, Deleaker, Visual Leak Detector or smart pointers - also good choice :)

  • @hirick1322
    @hirick1322 9 місяців тому

    Thanks bro i appreciate your explaining

  • @Mac-ew1gv
    @Mac-ew1gv 5 років тому +5

    This was a very good video! Thanks for making it!

    • @codebasics
      @codebasics  5 років тому

      Mac, I am glad you liked it

  • @Devildoc512
    @Devildoc512 2 роки тому +1

    Thanks you explained it well

  • @sharonroshanjohn8164
    @sharonroshanjohn8164 3 роки тому +1

    Very well explained

  • @zowajoy7616
    @zowajoy7616 3 роки тому +1

    Wowww well explained SIR

  • @chiraggupta2645
    @chiraggupta2645 4 роки тому +2

    Amazing video

  • @jayathissaaral2598
    @jayathissaaral2598 2 роки тому

    great explaination

  • @kadencarr1914
    @kadencarr1914 7 років тому +1

    Thanks for explaining this to me.

  • @mal5256
    @mal5256 3 роки тому

    good explaination

  • @srry198
    @srry198 7 років тому +2

    Great Video!

  • @datguy6745
    @datguy6745 5 місяців тому

    So if i transfer this idea to a videogame: is it
    a) the game still blocks RAM after i close it
    Or
    b) the game blocks memory while its running, so secondary tasks get slowed down?
    Or c) something else?

    • @OmegaRejectz
      @OmegaRejectz 4 місяці тому

      From what I gather it'd be B.

  • @xulustore
    @xulustore 7 років тому +4

    hahaha luv it

  • @benzflynn
    @benzflynn Рік тому

    But doesn't Java and other modern languages have a garbage collector that frees up memory from variables that are no longer in use ? if we still have to write statements like
    *delete this.var;*
    then why have a garbage collector ?

    • @DevDoge_
      @DevDoge_ 6 місяців тому

      Yeah but this is C++

  • @metalclawsteelheart
    @metalclawsteelheart Рік тому

    Indian youtube saves the day again!

  • @OrmandFamily-hs2zy
    @OrmandFamily-hs2zy 10 місяців тому

    All memory in a program is deallocated after it is terminated.

  • @Cr42yguy
    @Cr42yguy 4 роки тому +3

    All I hear is "mammary".

  • @WhiteSiroi
    @WhiteSiroi Рік тому

    thank you G

  • @karmaindustrie
    @karmaindustrie 5 років тому +3

    when will the memory be free again? After windows restart?

    • @dilute6980
      @dilute6980 5 років тому +1

      When you shutdown your pc, when your pc is shutdown it resets the hardware

    • @oneein9183
      @oneein9183 4 роки тому

      It doesn't need a window restart, but what I found is when a program terminates (gracefully or crash), all modern operating systems like windows claim back the memory. stackoverflow.com/a/44587308/2276036

    • @karmaindustrie
      @karmaindustrie 4 роки тому +1

      @@oneein9183 I guess they have good loyers ^_^

  • @dasariprasad6244
    @dasariprasad6244 5 років тому +1

    can we use SOAP services in Python?

  • @prab661987
    @prab661987 Рік тому

    Not convincing, probably might have to learn further and come back

  • @blacksta-r
    @blacksta-r 2 роки тому

    so they're stuck in the ram >:D

  • @Raja-tt4ll
    @Raja-tt4ll 6 місяців тому

    Nice

  • @pannihto7588
    @pannihto7588 3 роки тому

    Indians don't exist. That's just one guy with a funny accent who creates all the content

  • @JG-vo3mh
    @JG-vo3mh Рік тому

    Nice intro lol

  • @LION303200
    @LION303200 Рік тому

    this does not explain anything and what a waste of time watching this video. its like this ( what a water is? a water is what we drink called water) ... none sense and if there is more dislike to give i will give it the max dislike ever.

  • @doezage
    @doezage 4 роки тому

    Woy3 jon oo