[fpc-pascal] Apache Modules without LResources

Joost van der Sluis joost at cnoc.nl
Wed Apr 29 13:21:03 CEST 2009


Op dinsdag 28-04-2009 om 23:21 uur [tijdzone +0200], schreef Giovanni
Premuda:
> Joost van der Sluis wrote:
> > Op dinsdag 28-04-2009 om 02:58 uur [tijdzone +0200], schreef Giovanni
> > Premuda:
> >   
> >> Is it possible to use fclweb without linking LResources and a lazarus 
> >> resource file?
> >>     
> >
> > One way is without using modules, select 'File-New-Custom CGI Program'
> > from the lazarus-menu.
> >   
> This seems to  produce a  simple CGI app, not an apache module.

Ok, 'File-New-Custom Apache Module' and you'll have an apache module.

(But you really need svn lazarus and fpc to get this really to work)

> > Another way is using the 'normal' web-module, but remove it's
> > resource-file. So you have to create all components at run-time. To do
> > that you can simply remove the LResources from the uses-line, and remove
> > the {$I unit1.lrs} line
> And this is the first thing I tried but the module fails miserably with 
> error:
> 
> - *Failed to initialize component: No streaming method available
> 
> which makes me think the module is actually looking for a resource, 
> especially as the module works when i include a stub webmodule resource.

That's indeed a TDataModule issue.

Joost




More information about the fpc-pascal mailing list