Image.Clone does not unlock the file

Turns out, copying an image using Clone really does make an exact copy. You can’t just open an image, clone it, then safely close it as you might expect, because it also copies the file lock.

Instead, copy the image in memory using Image copy = new Image(source).

Creative Commons License
This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Comment (1)

  1. lxndr wrote::

    thank you ))

    Sunday, April 26, 2009 at 5:00 am #