[fpc-pascal] What changed in fcl-web?

Luca Olivetti luca at ventoso.org
Wed Mar 21 16:32:31 CET 2018

I have a standalone web application (fphttpapp) with a main module and a 
couple of additional modules.
I developed it a while ago with fpc-2.6.4 and it works quite well.

If I compile it with fpc 3.0.4 it stops working:

1) the second time I load a page I get an error

Error: Duplicate name: A component named "MainModule" already exists

If I change the Kind of the web module from wkPooled to wkOneShot it 
doesn't happen, but why do I have to change it and what other side 
effects will it have?

2) all the requests are passed to the main module and not to the 
additional ones, e.g. the request


with 2.6.4 would be dispatched to the module where I did a


with 3.0.4 it doesn't


More information about the fpc-pascal mailing list