[Lazarus] WebLaz bug

Leonardo M. Ramé l.rame at griensu.com
Wed Nov 28 22:17:22 CET 2012


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

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com




More information about the Lazarus mailing list