The using statement did the trick! Thanks a lot. I tried using the "dispose()" method but it caused a crash. I was thinking that the attachment object would go out of scope and that would cause it to automatically dispose. Apparently I was wrong. Thanks again for your help!