|
-
Nov 9th, 2009, 03:46 AM
#14
Thread Starter
Lively Member
Re: How to use system.threading.timer
Ok, i'll try to explain. I have 2 services that watches one folder for PDF files. I have defined what files wich service will move.. Each service reads it owns settings from an XML file!
Service 1 should only move files that begins with:
VB
VM
VS
And Service 2 should only move files that begins with:
JC
JT
The problem is that service 2 occationally tries to take service 1 files, but service one already has moved the file to the completed map and therefore service 2 complains that it can't find the file.. But this is so strange because i have defined that service 2 shouldn't take those files.. When i used system.timers,timer this problem never occured..
When the error occur the debug will complain on this line:
"If patterns.Count > 0 And FileIO.FileSystem.GetFileInfo(fName).Length > 5000 Then"
I have zipped the code of the services and the XML files and you can download it from here:
http://www.botnia.org/threading.zip
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|