does "put URL file" block Windows OS ?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
churchken
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 66
Joined: Sun Apr 15, 2007 2:54 pm

does "put URL file" block Windows OS ?

Post by churchken » Mon Nov 09, 2009 5:27 pm

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?
Ken

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Post by sturgis » Mon Nov 09, 2009 6:59 pm

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.

churchken
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 66
Joined: Sun Apr 15, 2007 2:54 pm

Post by churchken » Mon Nov 09, 2009 7:08 pm

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.
Ken

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Post by sturgis » Mon Nov 09, 2009 7:10 pm

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.

Post Reply