On Dec 19, 10:37 pm, "Elmo Watson" <s...@here.com> wrote:
> I have a windows service that, technically works most of the time, but I
> think I'm running into a situation that is caused due to actions being
> started before the last action is completed.
>
> In a Windows Forms application, I'd do this to overcome this:
> System.Windows.Forms.Application.DoEvents
>
> However, in my designer for the Windows Service (using the FileWatcher),
> this is not available
>
> So, how can I accomplish 'DoEvents' in a Windows Service?
Are you using multiple threads ? If yes, then synchronize them, to
avoid these kind of situations.
|