[fpc-devel] TCGIApplication

Michael Van Canneyt michael at freepascal.org
Thu Feb 8 17:04:03 CET 2007



On Thu, 8 Feb 2007, Michael Schnell wrote:

> Hi Experts.
> 
> I'm aiming to create non-GUI applications (not command line "programs", i.e.
> applications that can use event driven programming with TTimer,
> TThread.Synchronize etc.) using Free Pascal (and Lazarus).
> 
> When looking into that I found that I need to derive a new class
> ("TNonGuiApplication") from TCustomApplication.
> 
> I also found that this already has been done in the library with the
> "TCGIApplication" Class.

This is for CGI programs.

> What exactly is that beast (something in the manner I need (non-Gui
> "Application"), maybe the HTTP user interface the name suggests even might be
> useful for my purpose) ? Has it been tested in any way ? (I tried to create A
> "CGI-Application with the menus that _does_ exist in Lazarus for that purpose
> but Lazarus crashes in the process.)

The TCustomCGIApplication and TCGIApplication are tested, they are used by the
test suite (TCustomCGIApplication) cgi program. However, they are not suitable 
for anything except CGI programming, so unless you plan to make CGI programs,
you should not use them.

I think there was a bug in FPC 2.0.4 in the CGI support for Lazarus, but that
should be fixed in SVN as far as I know.

Michael.



More information about the fpc-devel mailing list