GetOverlappedResult() failed error

Amit Gupta
  • Amit Gupta

    Amit Gupta - 2008-10-04

    I followed below mentioned steps to setup IIPImageServer on Apache and Fast CGI:

    1. Download Apache 2.2.9 from
    2. Install it on Windows XP say at C:\Apache.
    3. Download FastCGI dll from to say C:/FastCGI.
    4. Create directory fcgi-bin in C:/Apache/htdocs.
    5. Download IIPImageServer from and extract the zip file.
    6. Copy all 6 files from the extracted zip file to C:/Apache/htdocs/fcgi-bin.
    7. Open C:/Apache/conf/httpd.conf for editing.
    8. Add
      LoadModule fastcgi_module C:/FastCGI/mod_fastcgi-2.4.6-AP22.dll
    9. Add
      AddHandler fastcgi-script fcg fcgi fpl exe
      <Directory "C:/Apache/htdocs/fcgi-bin">
      SetHandler fastcgi-script
      AllowOverride None
      Options ExecCGI
      Order allow,deny
      Allow from all
      ScriptAlias /fcgi-bin/ "C:/Apache/htdocs/fcgi-bin/"
      FastCgiConfig \ -initial-env PATH="c:/wamp/ruby/bin;c:/windows/system32;c:/windows;C:/Apache/htdocs/fcgi-bin/IIPImageServer.fcgi" \ -initial-env LOG=C:/Apache/logs/IIPImageServer.log \ -initial-env VERBOSITY=2 \ -initial-env JPEG_QUALITY=50 \ -initial-env MAX_IMAGE_CACHE_SIZE=10 \ -initial-env MAX_CVT=3000

    10. Save file. In command Prompt, go to C:/Apache/bin

    11. Run command httpd.exe
    12. Open web browser and try to access url http://localhost/fcgi-bin/IIPImageServer.fcgi.
    13. Observe that following is displayed in the web browser:
      Internal Server Error
      The server encountered an internal error or misconfiguration and was unable to complete your request.
      Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.
      More information about this error may be available in the server error log.

    14. Logs show the following:
      [Fri Oct 03 13:50:54 2008] [notice] Child 1676: Starting 64 worker threads.
      [Fri Oct 03 13:50:54 2008] [notice] FastCGI: process manager initialized
      [Fri Oct 03 13:50:54 2008] [notice] Child 1676: Starting thread to listen on port 80.
      [Fri Oct 03 13:50:58 2008] [warn] FastCGI: (dynamic) server "C:/Apache/htdocs/fcgi-bin/IIPImageServer.fcgi" started (pid 3900)
      [Fri Oct 03 13:50:58 2008] [warn] FastCGI: (dynamic) server "C:/Apache/htdocs/fcgi-bin/IIPImageServer.fcgi" (pid 3900) terminated with exit with status '1'
      [Fri Oct 03 13:51:03 2008] [warn] FastCGI: (dynamic) server "C:/Apache/htdocs/fcgi-bin/IIPImageServer.fcgi" restarted (pid 3188)
      [Fri Oct 03 13:51:03 2008] [error] [client] (OS 109)The pipe has been ended. : FastCGI: comm with server "C:/Apache/htdocs/fcgi-bin/IIPImageServer.fcgi" aborted: GetOverlappedResult() failed
      [Fri Oct 03 13:51:03 2008] [error] [client] FastCGI: incomplete headers (0 bytes) received from server "C:/Apache/htdocs/fcgi-bin/IIPImageServer.fcgi"
      [Fri Oct 03 13:51:03 2008] [warn] FastCGI: (dynamic) server "C:/Apache/htdocs/fcgi-bin/IIPImageServer.fcgi" (pid 3188) terminated with exit with status '1'

    Can somebody suggest what wrong I am doing? I have already spent couple of days on this but no solution so far. Please help.

    Thanks in advance.

    • Ruven

      Ruven - 2008-10-04

      This tutorial may be of help for Apache on Windows:
      Tell me if it helps you solve your problem.



Cancel  Add attachments

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks