Release file handles (C++)
Windows has a limited number of file handles that can be opened simultaneously. Make sure you have a recent version of ImageMagick, the current release is ImageMagick 6.2.8-3. It has improved file code for allocating file handled internally. You can control the number of file handles allocated to ImageMagick internally with the MAGICK_FILE_LIMIT environment variable.