On 23 February 2012 17:17,  <[email protected]> wrote:
> I have been redirecting the trace.writeline output to a textbox in most of
> my applications.  Its works great and helps me resolve issues very quickly
> but i find it can decrease the performance of the application dramatically.
>
> Anyone suggest the better way do this?  I am aware of log4net etc but
> interested in other people suggestions/opinions.
>
> I use a sub like this to make it thread safe
>
>     Private Sub objTraceListener_TextChanged(ByVal sText As String) Handles objTraceListener.TextChanged

I haven't actually looked it up to confirm, but I guess the
TextChanged event is actually (sender As Object, sText As String) and
the infrastructure used to allow alternative event signatures seems a
bit "interesting". Whether it is actually a performance issue though,
I don't know -- profile it.

<snip>
>
> Anthony
>
>

-- 
Regards,
Mark Hurd, B.Sc.(Ma.)(Hons.)

Reply via email to