" A handle leak is a type of software bug that occurs when a computer program asks for a handle to a resource but does not free the handle when it is no longer used. If this occurs frequently or repeatedly over an extended period of time, a large number of handles may be ed in-use and thus unavailable, causing performance problems or a crash.The term is derived from memory leak. " from wikipedia 也不是太详细哈...
but does not free the handle when it is no longer used.正如ls所说的, 你还是把它在不用的时候free掉, 养成好习惯。
但是 handle 泄露呢? 仅仅导致申请新的 handle 失败, 还是会因为内核资源的耗尽导致其他奇怪问题, 比如程序卡死...?
现在程序总是出现不规则的卡住问题, 所以想要了解下 handle 泄露相关的知识... 谢谢~
A handle leak is a type of software bug that occurs when a computer program asks for a handle to a resource but does not free the handle when it is no longer used. If this occurs frequently or repeatedly over an extended period of time, a large number of handles may be ed in-use and thus unavailable, causing performance problems or a crash.The term is derived from memory leak.
"
from wikipedia
也不是太详细哈...