471,317 Members | 1,406 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,317 software developers and data experts.

Sync Access

Hi,
i should access to the same XML file from 3 application. I use
System.Xml for load, save ecc ecc... so, i would access to file in
synchronized mode and handling the queue.
have you an idea?

thk
Jan 30 '06 #1
3 1290
You can use mutex to sync the access to Xml file.
Mutex, if named, is globally visible. So, before doing any I/O to the
ile - you will try to acquire that mutex.
--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Danilo Rizzo" <da********@gmail.com> wrote in message
news:eQ**************@TK2MSFTNGP09.phx.gbl...
Hi,
i should access to the same XML file from 3 application. I use System.Xml
for load, save ecc ecc... so, i would access to file in synchronized mode
and handling the queue.
have you an idea?

thk

Jan 30 '06 #2
Vadym Stetsyak ha scritto:
You can use mutex to sync the access to Xml file.
Mutex, if named, is globally visible. So, before doing any I/O to the
ile - you will try to acquire that mutex.


thanks, now i'm trying!

Danilo
Jan 30 '06 #3
mutex is only good for programs that are playing the same game.

Would it be better to just keep a non-shared read/write stream open on the
file - that would prevent any other app from writing or even moving it.

"Vadym Stetsyak" <va*****@ukr.net> wrote in message
news:eq**************@TK2MSFTNGP14.phx.gbl...
You can use mutex to sync the access to Xml file.
Mutex, if named, is globally visible. So, before doing any I/O to the
le - you will try to acquire that mutex.
--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Danilo Rizzo" <da********@gmail.com> wrote in message
news:eQ**************@TK2MSFTNGP09.phx.gbl...
Hi,
i should access to the same XML file from 3 application. I use System.Xml
for load, save ecc ecc... so, i would access to file in synchronized mode
and handling the queue.
have you an idea?

thk


Jan 31 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jason Gyetko | last post: by
1 post views Thread by Jake Jessup | last post: by
1 post views Thread by kartik | last post: by
reply views Thread by Steve Bishop | last post: by
1 post views Thread by Me | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.