Results 1 to 3 of 3

Thread: FSO Exclusive Use

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Location
    San Pedro, CA
    Posts
    104

    FSO Exclusive Use

    Is there anyway to apply a Read Lock or an Exclusive Use condition to a file opened with FSO?

    The way I am thinking is via opening it for write... but that could cause conflicts with what I am doing... and trying to resolve.

    Thanks!

    Last edited by realbogus; Oct 9th, 2008 at 12:11 PM.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: FSO Exclusive Use

    Kind of a dinosaur myself, don't use FSO, prefer API or good ol' VB. Anyway, I read a statement that basically said that FSO automatically locks the file until one uses a file .Close statement. The thing to remember is to not open the file ForReading. Use ForAppending or ForWriting.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Location
    San Pedro, CA
    Posts
    104

    Re: FSO Exclusive Use

    Ok... that makes some sense... but I have found a buggy that might just be the culpret. Now all I need to do is make sense of it. Off to create another topic...

    Thanks!

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