in reply to File rights?

Just a thought - as far as the indexing program goes - the index program has to open the DB for write...AFAIK WinXX doesn't like this situation (a file is opened for writing and another process also attempts to open it). There may be some DB_File specific issues here but I am not positive of the file-locking policies of DB_File. One solution for you is to do a manual file-locking situation. While the DB is open create a temporary .lock file somewhere. Once you close the DB remove the file. While the .lock is present have your other processes sleep for one second and check for it again. This would allow you to setup a manual queue. Using a DB Server would also solve the problem - let the server handle simultaneous requests.

-Adam Stanley
Nethosters, Inc.

Replies are listed 'Best First'.
Re: Re: File rights?
by HDrider (Initiate) on Apr 30, 2001 at 21:23 UTC
    OK. This is a bit over my head/skill level right now :)
    The indexing program runs each weekend when there is no one around,
    it hasn't given me any problems other than speed but it is chewing it's
    way through 4 gigs of files.

    What I'm trying to figure out is how to allow multiple users to search the index created
    DB files at the same time. I don't need the files locked.

    Thanks for the reply though, now I have something else to try and learn.

    HDrider
    A cold hamburger can be reheated quite nicely by strapping it to an exhaust pipe
    and riding forty miles :)