Understanding of managed and unmanaged resources, hosting of managed resources
In the. net programming environment, system resources are divided into managed resources and unmanaged resources.
For the collection of managed resources, manual
Recovery of. net unmanaged resources and recovery of. net managed resources
There are two ways to release unmanaged Resources
1. destructor
2. Implement the System. IDisposable Interface
I. destructor
The constructor can specify certain
C #14 days of advanced programming ---- release of unmanaged resources,
Release unmanaged Resources
When introducing the release of unmanaged resources, I think it is necessary to first understand what it is called an unmanaged resource. Since there
Recovery of. net unmanaged resources and recovery of. net managed resources
There are two ways to release unmanaged Resources
1. destructor
2. Implement the System. IDisposable Interface
I. destructor
The constructor can specify certain
About the recycling of unmanaged resources and about the recycling of managed resources
There are two ways to release unmanaged Resources
1. destructor
2. Implement the System. IDisposable Interface
I. destructor
The constructor can specify
We refer to useful things as resources. "The horses do not move, fodder first"-----procedures of the various data is the algorithm of raw materials and fodder. There are many places where data can be stored in a program, which can be placed in a
Releasing unmanaged ResourcesWhen it comes to releasing unmanaged resources, I think it is necessary to first meet the unmanaged resources, since there are unmanaged resources, there must be managed resources.Managed resources refer to the resources
I. Details about resource classification in Android 1. Android Resource ClassificationResources in Android fall into two categories: resources that can be accessed directly and native resources that cannot be accessed directly;-- Direct access to
In a. NET programming environment, the system's resources are divided into managed and unmanaged resources.
The recycling of managed resources does not require manual intervention, and you cannot interfere with their recycling, all you can do is
Author: Laruence () address of this article: www.laruence.com201207252662.html. Please indicate the source. I never thought this problem was a problem until yesterday. last night, I submitted an RFC about introducing finally to PHP. The starting
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.