Показать сообщение отдельно
Старый 07.07.2008, 12:35   #3  
Maxim Gorbunov is offline
Maxim Gorbunov
Administrator
Соотечественники
Лучший по профессии 2009
 
2,483 / 646 (26) +++++++
Регистрация: 27.11.2001
Адрес: Dubai, UAE
The thing is that the garbage collector cleans up objects only when they go out of scope. Sometimes an object can stay in scope for quite a while holding its memory (especially if .net client stays logged in, logging out forces all object handles to be released). There's a good advice on how to avoid objects staying in scope for too long - always use the using statement.
__________________
Not registered yet? Register here!
Have comments, questions, suggestions or anything else regarding our web site? Don't hesitate, send them to me