<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2013/5/15 Flávio Etrusco <span dir="ltr"><<a href="mailto:flavio.etrusco@gmail.com" target="_blank">flavio.etrusco@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im">On Wed, May 15, 2013 at 11:02 AM, Edilson Vieira<br>
<<a href="mailto:vieira.edilson@gmail.com">vieira.edilson@gmail.com</a>> wrote:<br>
> 2013/5/15 Michael Schnell <<a href="mailto:mschnell@lumino.de">mschnell@lumino.de</a>><br>
>><br>
>> On 05/14/2013 04:50 PM, Howard Page-Clark wrote:<br>
>>><br>
>>><br>
>>> Or create a Lazarus GUI app and implement Form1's OnCreate handler thus:<br>
>>><br>
>> Not all Targets an application might be intended to run on do provide a<br>
>> (supported) GUI API.<br>
><br>
><br>
> In the case I described it should be really a console App because there is<br>
> no need of user interaction. So if I need to make a GUI App it would be<br>
> waste of resource on the server.<br>
><br>
> I really do not understand why I can not make a console App that uses the<br>
> Graphics unit because in Delphi there is no problem on that.<br>
<br>
</div>The "waste" is probably negligible in most situations, since using CGI<br>
is a waste in itself (not to mention running Windows).<br>
</blockquote><div><br></div><div>"Negligible" in one program execution maybe. But it makes difference when many executions and many programs take place. Beyond that, this is not a good programming practice.<br>
</div><div>But yes, I am considering this solution (a GUI App). I will have to make some performance tests to see it will be possible.<br><br></div><div>About running Windows, in this case, it is not my choice.<br></div><div>
<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Using Graphics in Delphi will incur (cause) the same kind of overhead<br>
as using LCL/Interfaces in a Lazarus app.<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
(If you compile a Delphi application with no VCL dependencies you'll<br>
notice the big difference in executable size)<br>
<br></blockquote></div><br><div>I really do not know how to do it in Delphi without the Graphics unit. Beyond that the program is up and running. <br><br>My point here is to port or not from Delphi do Lazarus. I have other applications to consider also.<br>
</div><br><br></div><div class="gmail_extra">Best regards,<br><br></div><div class="gmail_extra">Edilson.<br></div></div>