Created
July 28, 2021 09:02
-
-
Save ProIntegritate/6d854d2dd45d912ded60da680f61661f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Specific object cleanup: | |
Object.Dispose() ' Does not exist for all objects though. | |
Object = Nothing ' This _will_ exist for all objects. | |
The periodically run: | |
GC.Collect() ' Init Garbage collector | |
If you use performance counters (System.Diagnostic.*), you may want to clean them up too as you free things up: | |
PerformanceCounter.CloseSharedResources() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment