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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to