Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2007-02

TCGIApplication

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Schnell

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.

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.)

Thanks for any comments,

-Michael

Reply by email

Michael Van Canneyt
to Michael Schnell
Michael Schnell wrote 11 lines
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.

Show quoted text 5 lines
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.

Reply by email