[fpc-pascal] EventLog and error "No member is provided to access property"

silvioprog silvioprog at gmail.com
Fri May 16 07:30:11 CEST 2014


2014-05-14 15:14 GMT-03:00 Michael Van Canneyt <michael at freepascal.org>:
>
>  On Tue, 13 May 2014, silvioprog wrote:
>
>> Hello,
>> I'm trying to set a own instance in EventLog property of all apps
>> like TCustomHttpApplication, TCustomCGIApplication
>> and TCustomFCGIApplication, but, no success.
>>
>> To get the error, try:
>>
>
> I have done this differently. The eventlog instance is owned by the
> application, so it should not be directly settable.
>
> I created a protected virtual method CreateEventLog that must return a
> configured TEventLog descendent instance.
> You can override this method and return whatever you want, as long as it
> descends from TEventLog.
>
> Revision 27790.
>
> Michael.


Thanks a lot guy! (y)

-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140516/f93e5590/attachment.html>


More information about the fpc-pascal mailing list