To use this examples just unzip the files in any directory. You can then double click on 
FreeResources.sln. It will open Visual Studio and make it easy to use all four projects.

FreeResources1 is a VB.NET Windows application that shows many concepts. See the 
instructions on the screen for the following cases:
1.	Why you cant rely on the GC to close files or other resources
2.	What can happen if you forget to use try/finally
3.	Using try/finally
4.	Same as #3 but using try/catch/finally (I dont recommend that style)
5.	Use the LogFile class

LOG Is a VB.NET DLL that implements the LogFile class with the IDisposable interface 
and design pattern.

ReleaseUserInterface is a VB.NET class that shows how the user interface may be 
adversely affected if you didnt use try/finally. In this example a button will stay disabled 
if you supply a value that triggers an exception such as zero.

UseFromCS is a C# Windows Application that uses LOG.dll. It shows the use of both 
try/finally and the using statement.

Mauro SantAnna  maurosantanna@hotmail.com
