jpeg being locked by ArcMap

Discussion created by jgiesler on Jul 30, 2010
Hey Everyone,
Does anyone know how to use the IFileDataLock method?  I am trying to delete a jpeg (the user may not like it) that I create in a form picturebox.  The problem is ArcMap is locking the image until it closes.  I don't know if I am missing release or something.  If you know anything about this method or another way around the problem that would be great.  I am writing in C#.