Title: RE: AsyncLogTarget: Can not write to closed target ...

:-) fine! I was wondering also. Locally I already moved it to constructor because in run it might be to late ...

Works fine, Thanks!


Michael


> -----Original Message-----
> From: Peter Donald [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 13, 2001 2:03 PM
> To: Avalon Developers List
> Subject: Re: AsyncLogTarget: Can not write to closed target ...
>
>
> On Wed, 12 Dec 2001 22:58, Bachran, Michael wrote:
> > I got a problem with the asnychronous target. It always
> states it can not
> > write to a closed stream. It does not override the
> processEvent method in
> > AbstractTarget and therefore checks the isOpen flag! Does
> it need to? It
> > can be overridden in AsyncLogTarget not to check, but to
> check if the
> > consuming thread is running I patched it locally by setting
> the flag to
> > true at the beginning of the run method of the AsyncLogTarget:
>
> Wierd. Works fine on one of my projects but looking at the
> code it shouldn't
> work at all. Hmmm. Any I fixed this (actually moved open()
> into constructor)
> and I also wrapped the delegation of log event in a try-catch
> block to stop
> it ending the thread.
>
> Could you make sure these things work for you? I won't be
> able to test it
> till the weekend but it looks like it should work.
>
> --
> Cheers,
>
> Pete
>
> -------------------------------------------------
> "Sometimes its better to keep your mouth shut and
> let people think your an idiot, than to open it
> and remove all doubt."
> -------------------------------------------------
>
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>

----------------------------------------- (on the network)

*********************************
PRIVILEGED - PRIVATE AND CONFIDENTIAL
This e-mail and files transmitted with it are intended solely for the
use of the addressee(s) and may contain information which is
confidential or privileged. If you are not the intended recipient, be
aware that any disclosure, copying, distribution or use of this e-mail
or any attachment is prohibited. If you receive this e-mail and you are
not the addressee, or you have received this e-mail in error, please
disregard the contents of the e-mail, delete the e-mail and notify the
author immediately.
*********************************


---------------------------------------------------------

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to