On Sun, 21 Jun 2009, Graeme Geldenhuys wrote:

Martin Friebe wrote:

Example: I may write a cgi-application (therefore it must have the web-fcl CgiApplication, right?), but I want to use this app to report the current screen resolution on the Server, so I do want to access the Screen object from the forms unit,

As a side note:
CGI applications are actually non-GUI applications. Which also means they can run on for example a Linux server that doesn't have a GUI running or even installed. So including Forms unit or any GUI units for that matter is going to causes that CGI application to fail or report errors on startup anyway because they cannot find the DISPLAY environment variable or open a connection to the running X11 server. I have first hand experience with this and had to rework the core tiOPF framework units to be truly non-gui, at which point my CGI apps and console based unit test suite started working correctly.

Windows users never detect this problem, because you don't get Windows severs without a GUI (though I believe Microsoft is working on such a Server release now).

As far as I know, Windows server 2008 is supposed to be able to work without 
GUI.

Michael.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to