[Lazarus] Simple embweb project hangs

Leonardo M. Ramé l.rame at griensu.com
Sun May 29 00:54:39 CEST 2011


Hi, I was trying to create a simple EmbWeb project to test debugging but
it hangs when I call a method from the browser.

To install embweb I did this:

fppkg update
fppkg install embweb

This creates the /.fppkg/lib/fpc/2.5.1/units/x86_64-linux/embweb and
~/.fppkg/lib/fpc/2.5.1/units/x86_64-linux/lnet directories containig
compiled versions of embweb and lnet respectively.

After that, I opened Lazarus and added the package embweb, then rebuild.

The next step was going to Project -> New Project -> Web Application.
Then, I added a new Web Module, an action (marked as default), compiled
and run.

My project's name was "webproject1", the module "TFPWebModule1" and the
action "TFPWebAction0", so, when called from the webbrowser I type this:

http://localhost:7004/webproject1/TFPWebModule1/TFPWebAction0

But instead of replying with the Response.Contents text I assigned to the
Action, it hangs (enters into an infinite-loop). What can be causing
this?.

If I type something wrong, for example http://localhost:7004/foo, I get
this:

<html><head><title>404 Not Found</title></head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
</body></html>

Later I found This message is handled by lNet's http server.

I attached the test project I used for this test.

BTW. I'm using Ubuntu 11.04 - 64bits, with FPC and Lazarus from SVN
trunk updated yesterday.
-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: embwebproj.tar.gz
Type: application/x-tar-gz
Size: 2232 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110528/894c9149/attachment-0002.bin>


More information about the Lazarus mailing list