473,508 Members | 2,346 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1331
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
1454
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
1599
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
2412
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
1030
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
2048
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
1736
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
2949
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
1467
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
3521
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
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7324
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7042
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.