I am using Delphi 7 and Apache 2.2.10 on Windows XP Ver 2002 service pack 3

I have a CGI application that provides access to PDF files.

During the download of larger files, the CGI exe just unloads without finishing 
the transfer.

My Code:
    Filename := Path+Document+'.pdf';
    Fs := TFileStream.Create(Filename, fmOpenRead, fmShareDenyNone);
    Response.ContentType := 'application/pdf';
    Response.ContentStream := Fs;
    Start := DateTimeToTimeStamp(Now);
    Response.SendResponse;
    Fs.Free;

Response.SendResponse never returns, the exe just unloads.

Is there something I'm not doing that I should or something I did that I 
shouldn't?

Doug

Reply via email to