Results 1 to 11 of 11

Thread: [Resolved]Files modified by VB are in a locked state

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    [Resolved]Files modified by VB are in a locked state

    I have some code that does a Find & Replace in some text files, and closes the file when complete. However, when I try to use the Kill command in VB to cleanup these files (they are temporary files) when the program is closed, I get errors that the file is in use by another app or process. Is there a way I can force these files to close first? This also happens when I scan a document using the EZTWAIN.dll Scan to native function. Everything goes fine, but if I try to scan again to overwrite the file, the file is in use. This is happening on Windows Vista SP1. Maybe I am missing an important step somewhere, but I don't understand why my app isn't releasing the files. Thanks for any help on this issue.

    -jeremy
    Last edited by hipopony66; Apr 8th, 2009 at 02:01 PM. Reason: Resolved

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