Howdy Rick,
I installed every ImageMagick-6.3.*-*-Q8-windows-dll.exe and ran url to demo1.asp:
Code: Select all
<%@ Language=PerlScript %>
<html><head><title>Testing</title></head>
<body>
<%
use Image::Magick;
%>
testing
</body></html>
and get
$Response->writeblock(0); use Image::Magick; $Response->writeblock(1); error '80004005'
Internal Error
/wis/PerlSupport/demo1.asp, line 0
Nothing in Windows Event Viewer. If I run demo.asp again without stopping and starting IIS, then IIS hangs.
When I run url to demo.plx (mapped in IIS to perlis.dll):
Code: Select all
#!c:/perl/bin/perl.exe
use strict;
use Image::Magick;
use CGI qw(:standard -nph);
my $tile = "testing";
print header("text/html");
print $tile;
I get in the browser:
Content-type: text/html
'D:\InetPub\WWWRoot\wis\PerlSupport\demo.plx' script produced no output
and in Windows Event Viewer under Application I get:
Script error(s) from PerlIS.dll logged in: C:\Perl\bin\PerlIS-Err.log
and in perlIS-Err.log I get
*** 'D:\InetPub\WWWRoot\wis\PerlSupport\demo.plx' error message at: 2006/11/07 15:45:25
INTERNAL ERROR: PerlParse did not exit clean!!!!
I am using IIS session state without .net so I have Max Number Worker Processes set at 1.
I have tried this on my back-up server that does not have all the gack from my day to day tinkering, but I get the same result: 6.2.9-7 works where as later versions do not.
It feels like there is dynamic loading or name mapping conflict going on inside IIS when perlis.dll performs "use Image::Magick;"
Upon a second attempt IIS thread stalls, with negligible CPU consumption, and must be stopped and re-started.
When running pages mapped to perl.exe there is no problem, only when running pages mapped to perlis.dll.
I have tried setting the Max Number Worker Processes to a higher number and get odd results similar to what you have described, sometimes it works but eventually fails and hangs. I don't know how to get IIS or perlis.dll to give me any clues about what is going on.
Blair