473,242 Members | 1,487 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,242 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 1327
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jason Gyetko | last post by:
I have a software application with an Access front end and an Access backend to house the data. Recently I converted the backend to MySQL. The Access frontend works fine connecting to the MySQL...
1
by: Jake Jessup | last post by:
I am just beginning development of a new app and I need a little advice on the best way to go about doing something. The app is a project management tool for a construction company. Users in the...
1
by: kartik | last post by:
I open an fstream in read-only mode, read till the end, then try to sync() before seeking to position 0 & reading again. But the sync fails. I discovered that clear()ing the stream before the sync...
0
by: Steve Bishop | last post by:
I was wondering if anyone could give me advice on Access 2002 and synchronization. We have several members in the field that need to sync with the office through a dial up. The sync will sometimes...
1
by: pStan | last post by:
Nubie Question...I'm sure this is simple, but here goes anyway. I have a small VB.Net application that uses a local Access Database. I want that same local data replicated to an Internet web site...
1
by: Me | last post by:
Currently I have an application that uses MS Access to store data. I have 150 users that connect to the network via VPN through out the world. We use Access data replication, which has has bugs and...
3
by: Ryan Liu | last post by:
Hi, What does ArrayList.Synchronized really do for an ArrayList? Is that equal to add lock(this) for all its public methods and properties? Not just for Add()/Insert()/Remvoe()/Count, but also...
0
by: Denis | last post by:
Hello, does anyone know of an easy way to do a Bi-Directional Data Sync between SQL Server and an Access database. I want to make sure that both Access (on a desktop app) and SQL Server (on...
6
by: kinedesigner | last post by:
We're using a perl script to fetch images from the inhouse server & pump them to a remote server with much higher bandwidth. I want to remove the Everyone account from the target folder on the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...

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.