Results 1 to 9 of 9

Thread: [RESOLVED] Streamread.close() problems

Hybrid View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2007
    Posts
    29

    Re: Streamread.close() problems

    Sorry

    I set a file monitor up and it calls the routine on file change.

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: Streamread.close() problems

    Quote 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...

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2007
    Posts
    29

    Re: Streamread.close() problems

    DOH....I'm such a tard.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jan 2007
    Posts
    29

    Re: Streamread.close() problems

    I'll try a timer event instead......thanks!

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jan 2007
    Posts
    29

    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
  •  



Click Here to Expand Forum to Full Width