Page 1 of 1

does "put URL file" block Windows OS ?

Posted: Mon Nov 09, 2009 5:27 pm
by churchken
Hi,

I use the following code to put multiple file content from the hard drive into a variable:

put the files into MyList
repeat with i=1 to the number of lines of MyList
if line i of MyList contains word 1 of fld"symbol2" then
put "file:"& line i of MyList into thisfile
put URL thisfile after BackData
end if
end repeat


The code works fine except that if a non-Rev program is simultaneously attempting to append to the source file while Rev is retrieving it, the original source file content is lost, and only the "newly appended" data is placed into the file by the non-Rev program. It's like the "put URL" Rev command blocks the OS append.

My assumption is that this a Windows issue. But, I don't have the ability to force the non-Rev program to change its timing of the append process.

Thanks in advance for any ideas on how to avoid the loss of data?

Posted: Mon Nov 09, 2009 6:59 pm
by sturgis
This isn't really an answer to your question, but thought you might be interested in a tool that tells you all the currently open file handles.

http://technet.microsoft.com/en-us/sysi ... 96655.aspx

Also wanted to say Hi neighbor. I'm about 2 hours south of Albuquerque in the middle of nowhere.

Posted: Mon Nov 09, 2009 7:08 pm
by churchken
Sturgis,

Thanks for the link -- I'll check it out.

And by the way, it's good to know the NM community of REV users is expanding.

Posted: Mon Nov 09, 2009 7:10 pm
by sturgis
This makes 2? *grin*
churchken wrote:Sturgis,

Thanks for the link -- I'll check it out.

And by the way, it's good to know the NM community of REV users is expanding.