Re: Catching exceptions from a FileSystemWatcher event handler
- From: "Alvin Bruney [Microsoft MVP]" <www.lulu.com/owc>
- Date: Fri, 5 Aug 2005 15:09:22 -0400
what are you throwing? You should be able to catch any cls compliant
exception. If it is non cls compliant, you will still be able to catch it
with a catch all filter but you won't be able do anything because there is
no exception object available. did i understand you right?
--
Regards
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc, Amazon, B&H etc
-------------------------------------------------------------------------------
"Ole" <Ole@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:30CA8812-1C45-4012-BE9F-6B4D16D2AD76@xxxxxxxxxxxxxxxx
> Hi,
>
> I'm using the FileSystemWatcher to monitor if there are changes to a file.
> When the event is raised I do some stuff in a custom event handler sub
> routine. It works fine.
>
> However... ;-)
>
> When errors do occur, I throw the exception from the catch part in my
> event
> handler sub routine. But I'm not able to catch that exception outside my
> event handler. How is this to be done?
>
> Regards,
> Ole
>
>
.
- Follow-Ups:
- References:
- Prev by Date: Re: does C# have any collection objects that support sort functionality so that I dont have to write my own sorting algorithm?
- Next by Date: Re: debug .net runtime
- Previous by thread: Catching exceptions from a FileSystemWatcher event handler
- Next by thread: Re: Catching exceptions from a FileSystemWatcher event handler
- Index(es):
Relevant Pages
|