I have never had trouble on Linux but on Windows I have never gotten
the FCL example program testcgi.pp to work, not even from the command
line. It dies when trying to initialize the CGI application (see
below). Has anyone been successful in writing CGI applications for
Windows? What's the "trick?"
$ fpc -gl testcgi.pp
Free Pascal Compiler version 2.0.0 [2005/05/08] for i386
Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Win32 for i386
61 Lines compiled, 0.5 sec
An unhandled exception occurred at $00401BB6 :
EAccessViolation : Access violation
$004015F3 main, line 56 of testcgi.pp
(In case your curious whether this works in Apache's CGI environment:
No. The error says "malformed header from script" because it's
returning the error message above. Also, I get the same errors
whether I execute in Cygwin or the Command Prompt.)
fpc-pascal maillist - [hidden email] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
I'm excited about Alpha testing a Pascal based CGI web forum.. I would like every single
person on the freepascal mailing list to come post a message so we can sort out any issues
with the forum, and put it into Beta or stable stage!
Please come post a message at the forum when you get a chance.