<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-05-14 15:14 GMT-03:00 Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span>:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">
On Tue, 13 May 2014, silvioprog wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
I'm trying to set a own instance in EventLog property of all apps like TCustomHttpApplication, <u></u>TCustomCGIApplication and TCustomFCGIApplication, but, no success.<br>
<br>
To get the error, try:<br>
</blockquote>
<br></div>
I have done this differently. The eventlog instance is owned by the application, so it should not be directly settable.<br>
<br>
I created a protected virtual method CreateEventLog that must return a configured TEventLog descendent instance.<br>
You can override this method and return whatever you want, as long as it descends from TEventLog.<br>
<br>
Revision 27790.<span class="HOEnZb"><font color="#888888"><br>
<br>
Michael.</font></span></blockquote></div><div><br></div><div>Thanks a lot guy! (y)</div><div><br></div>-- <br>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a>
</div></div>