What happens if i do not dispose unmanaged resources after the program is closed

1k Views Asked by At

So I heard from someone that it simply never releases, but what does it mean? Even if you close the program it stays in memory? How is that happening?

Couldn't find an answer for that, if this is duplicated or not good enough Q for the forum please let me know couse i really couldnt find an answer for that

1

There are 1 best solutions below

7
On

It means that as long as the process used to run your program lives, that resource will not be available to other processes.

This would mean that your program is hogging items which it does not need, which can cause to a degradation of the overall performance of your machine.

Once that the process dies or is killed, then the OS should make the resource available to the rest of the processes.