[Lazarus] Simple embweb project hangs

Lee Jenkins lee at datatrakpos.com
Sun May 29 20:33:02 CEST 2011


On 5/29/2011 12:02 PM, Leonardo M. Ramé wrote:
> On 2011-05-29 12:04:08 -0300, Leonardo M. Ramé wrote:
>> On 2011-05-29 05:38:29 -0700, leledumbo wrote:
>>> Well I got a slightly different condition after updating fpc, lazarus and
>>> embweb to their latest version, they finally work fine together. If you
>>> haven't please consider upgrading your lazarus and/or fpc first.
>>
>> I'll try.
>>
>>> Anyway, what's your action code?
>>
>> It's in the attached file, in the first message.
>>
>
> I updated fpc (with the patch from ABorka that fixes bug 19374) and
> Lazarus, then rebuild lnet and embweb using fppkg, but the result is the same, when
> I call http://localhost:7004/webproject1/TFPWebModule1/TFPWebAction0,
> the application hangs.
>
> @Leledumbo, here is the action code:
>
> procedure TFPWebModule1.TFPWebAction0Request(Sender: TObject;
>    ARequest: TRequest; AResponse: TResponse; var Handled: Boolean);
> begin
>    AResponse.Content := 'Hello!';
> end;
>
> Anyway, if I set a breakpoint in the "AResponse.Content" line, it is
> never reached.
>

Leonardo,

Is it the sole Action on your TFPWebModule?  Try setting the Actions' .Default 
property to true and try that.  I seem to remember that I needed to do that if 
there was only one for some reason.

--
Warm Regards,

Lee





More information about the Lazarus mailing list