[magick-users] perlmagic -- problem with write being buffered?

Ron Savage ron at savage.net.au
Fri Nov 23 14:39:05 PST 2007


On Fri, 2007-11-23 at 11:11 -0500, Robert W Weaver wrote:

Hi Robert

> The problem seems to be that imagemagick won't let go of the file.

A couple of things come to mind:

1) Under Unix-like OSes it's possible - roughly speaking - to open a
file and, while holding it open, delete it from the directory, so the
process which has it open is the only process which knows about the
file. (I'll let the experts clarify that if necessary). Under Windows
that's not possible. Now, why is that relevant? It may not be, but I'm
wondering if IM has code in it which assumes that it can do that. Just a
wild and baseless guess.

2) Have you considered forcing this part of your code into a new scope,
just by adding a pair of {}, so exiting the scope causes Perl and hence
IM to release resources. Just a not-so-wild guess.
-- 
Ron Savage
ron at savage.net.au
http://savage.net.au/index.html




More information about the Magick-users mailing list