|
-
Jan 19th, 2007, 10:47 AM
#1
Thread Starter
Junior Member
Re: Streamread.close() problems
Sorry
I set a file monitor up and it calls the routine on file change.
-
Jan 19th, 2007, 11:15 AM
#2
Re: Streamread.close() problems
 Originally Posted by sc0ttr0
Sorry
I set a file monitor up and it calls the routine on file change.
That explains it.... In your logupdate sub, you try to read the file, then call clearlog right after that.... clearlog clears the file thus causing file change event to fire ---> logupdate sub runs again, trying to read the file which is still being held by clearlog...
-
Jan 19th, 2007, 12:04 PM
#3
Thread Starter
Junior Member
Re: Streamread.close() problems
-
Jan 19th, 2007, 12:11 PM
#4
Thread Starter
Junior Member
Re: Streamread.close() problems
I'll try a timer event instead......thanks!
-
Jan 19th, 2007, 02:34 PM
#5
Thread Starter
Junior Member
Re: [RESOLVED] Streamread.close() problems
works perfectly inside a timer instead of a filewatch.
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
|