[fpc-pascal] fcl-web TFPHttpServer component problem
Graeme Geldenhuys
graemeg.lists at gmail.com
Mon Nov 28 12:09:26 CET 2011
On 28/11/2011, Leonardo M. Ramé <martinrame at y.....> wrote:
>
> I think that class was meant to be used as the main program loop.
If so, that's a pretty dumb design. Also the HTTP server is
implemented as a component (TComponent descendant), so I gather the
thoughts was that some day they would like it to sit on the Lazarus
component palette, where it will be dropped onto some form or data
module - thus rendering that application frozen too.
> Didn't tested, but what happens if you use it inside a TThread?.
I can't see how that would work either. For example, you can never
check for the Terminated boolean property (in the customary while
loop) inside the thread's Execute method, because as before, the call
to Active never returns. So you always need to kill the process - no
clean exit ever.
--
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
More information about the fpc-pascal
mailing list