Apache failure in msvcr100.dll on readimage
Posted: 2011-01-25T07:54:48-07:00
Hi, folks,
Am trying to get to the bottom to an apparent install/config problem with Imagick.
Apache 2.2.17 (ApacheLounge build - VC9), PHP 5.3.5 (VC9, 32-bit, thread-protect), Windows XP - localhost..
Have run a few sample scripts, and have no trouble rendering text & drawing, but as soon as I attempt to touch an image file (have tried .jpg & .png), Apache throws an exception. Nothing in Apache/PHP logs other than restart events.
Event log shows: Faulting application httpd.exe, version 2.2.17.0, faulting module msvcr100.dll, version 10.0.30319.1, fault address 0x0008ae6e.
Does anyone have any ideas on what could be causing this behaviour? Sample code below.
Many thanks,
Am trying to get to the bottom to an apparent install/config problem with Imagick.
Apache 2.2.17 (ApacheLounge build - VC9), PHP 5.3.5 (VC9, 32-bit, thread-protect), Windows XP - localhost..
Have run a few sample scripts, and have no trouble rendering text & drawing, but as soon as I attempt to touch an image file (have tried .jpg & .png), Apache throws an exception. Nothing in Apache/PHP logs other than restart events.
Event log shows: Faulting application httpd.exe, version 2.2.17.0, faulting module msvcr100.dll, version 10.0.30319.1, fault address 0x0008ae6e.
Does anyone have any ideas on what could be causing this behaviour? Sample code below.
Many thanks,
Code: Select all
<?php
$image = "Back1.jpg";
$im = new Imagick();
/**** If I comment out the following line, program executes and draws a nice
/* blue square. If this line is executed, exception is thrown. If the filename
/* is changed to a nonexistent name no exception is thrown, but only a
/* placeholder is echoed.
$im->readImage ( $image );
$canvas = new Imagick();
$canvas->newImage(400, 400, "#E1EFF9");
$canvas->setImageFormat('jpg');
header("Content-Type: image/jpg");
echo $canvas;
?>