>>Jack writes: >Mark! > >My easiest solution is to use a text file as a flag. When your client app >starts up it first checks to see if the text file (which resides on your >server's shared folder) contains the words "In Use" - or "Whoa" or >something. If it does, the app eithers waits a short time or gives the user >a choice before trying again. > >If the text file reads "Go!" then immediately continue starting your client >app and write "In Use" to your text file. Do your DB work and when quitting, write "Go!" to the text file.
This works for me in a cross platfrom environment as well. Me writes: This sounds like a nifty idea, but I can't get the "read from file" to work properly in the shared environment. Also, it seems that the path name for the text file is different depending on which machine it is accessed from (the server of one of the, er, non-servers). So, for example, the path name on the server is "serverHD/sharedFolder/theTextFile"...but on the accessing computers, it is simply "/Sharedfolder/thetextfile", and when I try to do a read, I just don't get it, even if I play around with the path name. I have also tried other solutions, such as setting a custom property of the stack to "busy" while in use, then back to "not busy" on close stack, then access this property with a preopenstack handler that bails if its "busy" but this only seems to work intermittantly for some reason. I'm curious though, all the other apps I work with in the shared environment (word processors, hypercard, supercard) do not let you access the same file at the same time from multiple computers. Why does metacard??? mark mitchell Japan Archives: http://www.mail-archive.com/[email protected]/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to <[EMAIL PROTECTED]>, not this list.
