Sunday, August 10, 2008

Explicacion de IDisposable (Level 5-5)

En el sgte link se explica:
Aqui.

Intentando replicar lo explicado en el link de arriba, el codigo:
Aqui

Interface IDisposable y el metodo Dispose()

IDisposable

El uso principal es liberar recursos no administrados, a travez de la implementacion del metodo Dispose.

Dispose

Explicitamente liberar recursos no manejados.



Link Source

Memory Leak

Asociado, con Consumo de memoria.

Memory leak
In computer science, a memory leak is a particular kind of unintentional memory consumption by a computer program where the program fails to release memory when no longer needed. This condition is normally the result of a bug in a program that prevents it from freeing up memory that it no longer needs.