Re: Windows Service in C#
- From: Emy <emanuelanechei@xxxxxxxxx>
- Date: Thu, 10 Jul 2008 01:01:20 -0700 (PDT)
Thank you for your response, I found out the cause that generated that
behaviour of the windows service.
The cause was that I was reading from the file too quickly after the
file was modified by the other process before the other process closed
the file.
I introduced a delay in the method that reads from the file and now
works fine, but the OnChange event of the FileSystemWatcher object is
triggered from 2 to 4 times.
I don't understand the reason for this. If you can help me this time
please send me a work around if you have any or any other idea that
would solve the issue.
I found out on the net that this is a known issue in the dotNet but
did not find any method to solve it.
Thank you again.
.
- References:
- Windows Service in C#
- From: emanuelanechei
- Re: Windows Service in C#
- From: Alberto Poblacion
- Re: Windows Service in C#
- From: Jeroen Mostert
- Re: Windows Service in C#
- From: Jeff Winn
- Windows Service in C#
- Prev by Date: Re: What should I Use ?
- Next by Date: Re: How to override windows notifications/balloons/popups/outlook reminders
- Previous by thread: Re: Windows Service in C#
- Next by thread: listview invalidate problem
- Index(es):
Relevant Pages
|