为何锁住我的ISAPI?
Again 2000-06-10 03:19:00 我做的ISAPI DLL拷PWS目录下用IE浏览后为何总是会出现锁死的情况?文件没法更新,必须重启。内容如下:
procedure TWebModule1.WebModule1WebActionItem1Action(Sender: TObject;
Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
var
Page:TStringList;
begin
page:=TStringList.Create;
try
with page do
begin
ADD('<HTML>');
ADD('<HEAD>');
ADD('<TITLE>sdakjfdsla</TITLE>');
ADD('</HEAD>');
ADD('<BODY>');
ADD('<H3><FONT COLOR="RED">This page displays the properties of the HTTP request that asked for it.</FONT><H3>');
ADD('<P>');
ADD('Method='+Request.Method+'<BR>');
ADD('Protocol Version='+Request.ProtocolVersion+'<BR>');
ADD('URL='+Request.URL+'<BR>');
ADD('QURERY='+Request.Query+'<BR>');
ADD('PathInfo='+Request.PathInfo+'<BR>');
end;
PageProducer1.HTMLDoc:=page;
response.content:=PageProducer1.Content;
finally
page.free;
end;
Handled:=true;
end;