I believe you'll want to fork (start a new process) for your display. You can then issue a kill to it when you're ready to move on. You could probably do the same thing with threads, too.
There may be better ways, but that's the first that comes to mind. Scott Spearman Programmer Analyst - Pikeville Medical Center [EMAIL PROTECTED] (606) 218-4660 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Knoop Sent: Tuesday, September 25, 2007 9:46 AM To: [email protected] Subject: [magick-users] How to avoid blocking IM displayPerlMagick/ActivePerl/Win32 Hi I'm new to Image::Magick. I have a perl script which displays an image and requires some user input from the command line. I would like to leave the image displayed while getting the input but the script is hanging once the image is displayed and does not continue until I close the window. I have tried using $image->Write('win:'); and system("imdisplay $path"); but both seem to block. Any ideas? Secondly if there is a way of leaving the display open while continuing with the script is there a way of closing the display programmatically later on? Many thanks Mark _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
