Dispose and not managed resources

Take care when you are using not managed resources in .NET.
For example for not implement a dispose pattern like this a service that I made, it created a lot off memory mapped files and they never closed, causing the memory drained off.

Technorati tags: