[Lazarus] WebLaz bug
Leonardo M. Ramé
l.rame at griensu.com
Thu Nov 29 12:30:42 CET 2012
On 2012-11-28 23:33:40 -0800, leledumbo wrote:
> > I don't know if this bug is related to Lazarus, WebLaz or FPC. Please
> tell me and I'll post it on Mantis:
>
> To reproduce it, please follow this steps:
>
> 1) Create a CGI application. You'll need WebLaz package.
> 2) Add an FPWebModule.
> 3) Add two or three actions. Compile and check if they work as expected.
> 4) Delete the method "onRequest..." of one action from code, DO NOT
> REMOVE THE ACTION USING THE ACTIONS EDITOR, just delete the method
> similar to this (from interface and implementation):
>
> procedure myActionRequest(Sender: TObject; ARequest: TRequest;
> AResponse: TResponse; var Handled: Boolean);
>
> 5) Compile and test. When you invoke any action of this webmodule,
> you'll get this:
>
> Error reading XXXXXXX.Actions: Error reading TFPWebAction.OnRequest: Invalid
> value for property
>
>
>
> That's normal, as if you delete a generated event handler from any
> application (e.g. OnClick of a TButton). The resource file is not
> automatically updated with your changes in the code. Simply don't do such a
> thing, and use the actions editor, that's why it exists.
>
>
Well, I wouldn't try to synchronize code with lfm, but I'd add more info
to the error message, for example "...Invalid value for property AAAAA",
just add the property with problems.
--
Leonardo M. Ramé
http://leonardorame.blogspot.com
More information about the Lazarus
mailing list